mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[InstCombine][NFC] Use SimplifyAddInst() instead of SimplifyBinOp(Instruction::BinaryOps::Add, )
llvm-svn: 368521
This commit is contained in:
parent
e10873abd8
commit
9ef58d1401
@ -3343,8 +3343,8 @@ foldShiftIntoShiftInAnotherHandOfAndInICmp(ICmpInst &I, const SimplifyQuery SQ,
|
||||
}
|
||||
|
||||
// Can we fold (XShAmt+YShAmt) ?
|
||||
Value *NewShAmt = SimplifyBinOp(Instruction::BinaryOps::Add, XShAmt, YShAmt,
|
||||
SQ.getWithInstruction(&I));
|
||||
Value *NewShAmt = SimplifyAddInst(XShAmt, YShAmt, /*IsNSW=*/false,
|
||||
/*IsNUW=*/false, SQ.getWithInstruction(&I));
|
||||
if (!NewShAmt)
|
||||
return nullptr;
|
||||
// Is the new shift amount smaller than the bit width?
|
||||
|
Loading…
Reference in New Issue
Block a user