mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-01 00:02:16 +00:00
Turn off the div -> mul optimization until it works correctly 100% of the
time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21105 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
815d6dac1e
commit
8f52980f03
@ -1601,11 +1601,11 @@ unsigned ISel::SelectExpr(SDOperand N) {
|
||||
return Result;
|
||||
// If this is a divide by constant, we can emit code using some magic
|
||||
// constants to implement it as a multiply instead.
|
||||
case 4:
|
||||
if (opcode == ISD::SDIV)
|
||||
return SelectExpr(BuildSDIVSequence(N));
|
||||
else
|
||||
return SelectExpr(BuildUDIVSequence(N));
|
||||
//case 4:
|
||||
// if (opcode == ISD::SDIV)
|
||||
// return SelectExpr(BuildSDIVSequence(N));
|
||||
// else
|
||||
// return SelectExpr(BuildUDIVSequence(N));
|
||||
}
|
||||
Tmp1 = SelectExpr(N.getOperand(0));
|
||||
Tmp2 = SelectExpr(N.getOperand(1));
|
||||
|
Loading…
x
Reference in New Issue
Block a user