summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CellSPU/SPUISelLowering.cpp
diff options
context:
space:
mode:
authorKalle Raiskila <kalle.raiskila@nokia.com>2010-11-23 13:27:59 +0000
committerKalle Raiskila <kalle.raiskila@nokia.com>2010-11-23 13:27:59 +0000
commite1b6c273b82609a83b5aa07a70a2941ce731f7c6 (patch)
treed6919f128d5a77715a23d5c9b2f152006052ddad /llvm/lib/Target/CellSPU/SPUISelLowering.cpp
parentf6c05b1d01b06da75eadd1de6445b1fcddcb0196 (diff)
downloadbcm5719-llvm-e1b6c273b82609a83b5aa07a70a2941ce731f7c6.tar.gz
bcm5719-llvm-e1b6c273b82609a83b5aa07a70a2941ce731f7c6.zip
Division by pow-of-2 is not cheap on SPU, do it with
shifts. llvm-svn: 120022
Diffstat (limited to 'llvm/lib/Target/CellSPU/SPUISelLowering.cpp')
-rw-r--r--llvm/lib/Target/CellSPU/SPUISelLowering.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Target/CellSPU/SPUISelLowering.cpp b/llvm/lib/Target/CellSPU/SPUISelLowering.cpp
index 014fbbedb70..0fa511eade3 100644
--- a/llvm/lib/Target/CellSPU/SPUISelLowering.cpp
+++ b/llvm/lib/Target/CellSPU/SPUISelLowering.cpp
@@ -97,8 +97,6 @@ namespace {
SPUTargetLowering::SPUTargetLowering(SPUTargetMachine &TM)
: TargetLowering(TM, new TargetLoweringObjectFileELF()),
SPUTM(TM) {
- // Fold away setcc operations if possible.
- setPow2DivIsCheap();
// Use _setjmp/_longjmp instead of setjmp/longjmp.
setUseUnderscoreSetJmp(true);
OpenPOWER on IntegriCloud