mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 05:30:49 +00:00
Have SimplifyBinOp call the new FAdd/FSub/FMul helpers, with fast-math flags off
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169943 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5f70c2e934
commit
d0a0d221da
@ -2790,10 +2790,18 @@ static Value *SimplifyBinOp(unsigned Opcode, Value *LHS, Value *RHS,
|
||||
case Instruction::Add:
|
||||
return SimplifyAddInst(LHS, RHS, /*isNSW*/false, /*isNUW*/false,
|
||||
Q, MaxRecurse);
|
||||
case Instruction::FAdd:
|
||||
return SimplifyFAddInst(LHS, RHS, FastMathFlags(), Q, MaxRecurse);
|
||||
|
||||
case Instruction::Sub:
|
||||
return SimplifySubInst(LHS, RHS, /*isNSW*/false, /*isNUW*/false,
|
||||
Q, MaxRecurse);
|
||||
case Instruction::FSub:
|
||||
return SimplifyFSubInst(LHS, RHS, FastMathFlags(), Q, MaxRecurse);
|
||||
|
||||
case Instruction::Mul: return SimplifyMulInst (LHS, RHS, Q, MaxRecurse);
|
||||
case Instruction::FMul:
|
||||
return SimplifyFMulInst (LHS, RHS, FastMathFlags(), Q, MaxRecurse);
|
||||
case Instruction::SDiv: return SimplifySDivInst(LHS, RHS, Q, MaxRecurse);
|
||||
case Instruction::UDiv: return SimplifyUDivInst(LHS, RHS, Q, MaxRecurse);
|
||||
case Instruction::FDiv: return SimplifyFDivInst(LHS, RHS, Q, MaxRecurse);
|
||||
|
Loading…
Reference in New Issue
Block a user