mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
Replace some weird usage of UserOp1 introduced in r49492 by a plain if.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51482 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6fce844a11
commit
214142cd4f
@ -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…
x
Reference in New Issue
Block a user