mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Fix logic think-o
llvm-svn: 108601
This commit is contained in:
parent
00b8fa89c8
commit
5e095020ae
@ -4267,7 +4267,7 @@ static SDValue PerformORCombine(SDNode *N,
|
||||
if (!C)
|
||||
return SDValue();
|
||||
unsigned Val = C->getZExtValue();
|
||||
if (ARM::isBitFieldInvertedMask(Mask) && (Val & ~Mask) != Val)
|
||||
if (!ARM::isBitFieldInvertedMask(Mask) || (Val & ~Mask) != Val)
|
||||
return SDValue();
|
||||
Val >>= CountTrailingZeros_32(~Mask);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user