commit | c95ba44b30e23f028827bb6be45096b919315abb | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Thu Dec 06 06:25:04 2007 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Thu Dec 06 06:25:04 2007 +0000 |
tree | 9bcdbfed5f1674f4820fdc21971696cc769435fd | |
parent | 72b2df1f7718c2ac8a87802e28bf07a9b649252a [diff] [blame] |
simplify some code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44655 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index b131750..a868e56 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -6082,9 +6082,8 @@ // the constant which would cause it to be modified for this // operation. // - if (isValid && !isLeftShift && I.getOpcode() == Instruction::AShr) { + if (isValid && I.getOpcode() == Instruction::AShr) isValid = Op0C->getValue()[TypeBits-1] == highBitSet; - } if (isValid) { Constant *NewRHS = ConstantExpr::get(I.getOpcode(), Op0C, Op1);