diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-04-27 18:47:54 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-04-27 18:47:54 +0000 |
| commit | ce4b3fee7274e73cfbdf1e4b3e61dda106dbe2bd (patch) | |
| tree | 9fed6f521830060ce7f518a5578d8a01ccbfb740 /llvm/lib/CodeGen | |
| parent | 3693e77cb44554f8ae4805dd33eab6a936bf5c35 (diff) | |
| download | bcm5719-llvm-ce4b3fee7274e73cfbdf1e4b3e61dda106dbe2bd.tar.gz bcm5719-llvm-ce4b3fee7274e73cfbdf1e4b3e61dda106dbe2bd.zip | |
X86TTI: Adjust sdiv cost now that we can lower it on plain SSE2.
Includes a fix for a horrible typo that caused all SDIV costs to be
slightly off :)
llvm-svn: 207371
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/TargetLoweringBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp index 47ee2b0988f..978432411ef 100644 --- a/llvm/lib/CodeGen/TargetLoweringBase.cpp +++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp @@ -1327,7 +1327,7 @@ int TargetLoweringBase::InstructionOpcodeToISD(unsigned Opcode) const { case Mul: return ISD::MUL; case FMul: return ISD::FMUL; case UDiv: return ISD::UDIV; - case SDiv: return ISD::UDIV; + case SDiv: return ISD::SDIV; case FDiv: return ISD::FDIV; case URem: return ISD::UREM; case SRem: return ISD::SREM; |

