mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-09 05:11:39 +00:00
simplify some code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44655 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
72b2df1f77
commit
c95ba44b30
@ -6082,9 +6082,8 @@ Instruction *InstCombiner::FoldShiftByConstant(Value *Op0, ConstantInt *Op1,
|
||||
// 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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user