summaryrefslogtreecommitdiff
path: root/lib/Target/XCore/XCoreTargetObjectFile.cpp
diff options
context:
space:
mode:
authorDaniel Sanders <daniel.sanders@imgtec.com>2013-11-21 16:11:31 +0000
committerDaniel Sanders <daniel.sanders@imgtec.com>2013-11-21 16:11:31 +0000
commit959f0c3f44db98d6861e399c58bfc2066bee739e (patch)
tree4e4c8e24efec4be58d37bc360b0731c0fc5fea3f /lib/Target/XCore/XCoreTargetObjectFile.cpp
parent7663849322b6318d3487beb155597d578a5642e6 (diff)
downloadllvm-959f0c3f44db98d6861e399c58bfc2066bee739e.tar.gz
llvm-959f0c3f44db98d6861e399c58bfc2066bee739e.tar.bz2
llvm-959f0c3f44db98d6861e399c58bfc2066bee739e.tar.xz
[mips][msa] Fix a corner case in performORCombine() when combining nodes into VSELECT.
Mask == ~InvMask asserts if the width of Mask and InvMask differ. The combine isn't valid (with two exceptions, see below) if the widths differ so test for this before testing Mask == ~InvMask. In the specific cases of Mask=~0 and InvMask=0, as well as Mask=0 and InvMask=~0, the combine is still valid. However, there are more appropriate combines that could be used in these cases such as folding x & 0 to 0, or x & ~0 to x. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195364 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/XCore/XCoreTargetObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions