aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-09-28 03:30:25 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-09-28 03:30:25 +0000
commitb10c6b8e9ea2389ce390ef500298733b73639966 (patch)
treeeab120b981ce35eec856cf5df031bb2beaced635 /llvm/lib/CodeGen/MachineInstr.cpp
parentba80b5d43c516a6136897f5db37b90f75a62f4be (diff)
downloadllvm-b10c6b8e9ea2389ce390ef500298733b73639966.zip
llvm-b10c6b8e9ea2389ce390ef500298733b73639966.tar.gz
llvm-b10c6b8e9ea2389ce390ef500298733b73639966.tar.bz2
[x86] Fix yet another bug in the new vector shuffle lowering's handling
of widening masks. We can't widen a zeroing mask unless both elements that would be merged are either zeroed or undef. This is the only way to widen a mask if it has a zeroed element. Also clean up the code here by ordering the checks in a more logical way and by using the symoblic values for undef and zero. I'm actually torn on using the symbolic values because the existing code is littered with the assumption that -1 is undef, and moreover that entries '< 0' are the special entries. While that works with the values given to these constants, using the symbolic constants actually makes it a bit more opaque why this is the case. llvm-svn: 218575
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions