mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-04 01:51:31 +00:00
Replace some weird usage of UserOp1 introduced in r49492 by a plain if.
llvm-svn: 51482
This commit is contained in:
parent
ab2db287bd
commit
e9217fe486
@ -1096,7 +1096,9 @@ void InstCombiner::ComputeMaskedBits(Value *V, const APInt &Mask,
|
||||
Value *L = P->getIncomingValue(i);
|
||||
Value *R = P->getIncomingValue(!i);
|
||||
User *LU = dyn_cast<User>(L);
|
||||
unsigned Opcode = LU ? getOpcode(LU) : (unsigned)Instruction::UserOp1;
|
||||
if (!LU)
|
||||
continue;
|
||||
unsigned Opcode = getOpcode(LU);
|
||||
// Check for operations that have the property that if
|
||||
// both their operands have low zero bits, the result
|
||||
// will have low zero bits.
|
||||
|
Loading…
Reference in New Issue
Block a user