Skip to content
Commit e79d249c authored by Chris Lattner's avatar Chris Lattner
Browse files

Lower vperm(x,y, mask) -> shuffle(x,y,mask) if mask is constant. This allows

us to compile oh-so-realistic stuff like this:

 vec_vperm(A, B, (vector unsigned char){14});

to:
        vspltb v0, v0, 14

instead of:

        vspltisb v0, 14
        vperm v0, v2, v1, v0

llvm-svn: 27452
parent 6329bbf2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment