diff options
author | Nate Begeman <natebegeman@mac.com> | 2005-10-20 02:15:44 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2005-10-20 02:15:44 +0000 |
commit | 6957523b9ddc6e85aede47a107502043fd1a3b2d (patch) | |
tree | aef758527f57a29e7fb732e424b7c0418b428a87 /lib/Target/PowerPC/PPCISelLowering.cpp | |
parent | d32d4a93f6aa524116e7043a1d4059febab0de9b (diff) |
Move the target constant divide optimization up into the dag combiner, so
that the nodes can be folded with other nodes, and we can not duplicate
code in every backend. Alpha will probably want this too.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23835 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCISelLowering.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp index 5256e4839d..118c605888 100644 --- a/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/lib/Target/PowerPC/PPCISelLowering.cpp @@ -27,6 +27,8 @@ PPCTargetLowering::PPCTargetLowering(TargetMachine &TM) // Fold away setcc operations if possible. setSetCCIsExpensive(); + // Fold constant integer div/rem into an alternate sequence of instructions + setIntDivIsExpensive(); // Use _setjmp/_longjmp instead of setjmp/longjmp. setUseUnderscoreSetJmpLongJmp(true); |