diff options
author | Matthijs Kooijman <matthijs@stdin.nl> | 2008-05-23 16:17:48 +0000 |
---|---|---|
committer | Matthijs Kooijman <matthijs@stdin.nl> | 2008-05-23 16:17:48 +0000 |
commit | 214142cd4f0a3570f62ee376df36fa0bfdd7fe39 (patch) | |
tree | ba12eb2dbde6b42dfaf7c0d82efd430005a14e77 | |
parent | 6fce844a11630ee0866fcf2bc388641b26fc16e1 (diff) |
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
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index d7f5ccf788..2d300dc68f 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -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. |