summaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-04-27 18:47:54 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-04-27 18:47:54 +0000
commit3551384ae2747b02a7f6821d5545cf1756941e41 (patch)
tree87f28815365ce0b1beec1fc88173c82e2be29ddf /lib/CodeGen
parentad1f916eafc01592deaad7dfe85738c90081163d (diff)
downloadllvm-3551384ae2747b02a7f6821d5545cf1756941e41.tar.gz
llvm-3551384ae2747b02a7f6821d5545cf1756941e41.tar.bz2
llvm-3551384ae2747b02a7f6821d5545cf1756941e41.tar.xz
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 :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207371 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/TargetLoweringBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/TargetLoweringBase.cpp b/lib/CodeGen/TargetLoweringBase.cpp
index 47ee2b0988..978432411e 100644
--- a/lib/CodeGen/TargetLoweringBase.cpp
+++ b/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;