commit | 15b76e3f3e0d20aef4d4deb88c51e8485bacf55b | [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 | 12de88c3be91114fc075d3dac6ebe4156a8353ad [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);