[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaISelPattern.cpp

Andrew Lenharth alenhar2 at cs.uiuc.edu
Thu Mar 31 14:02:40 PST 2005



Changes in directory llvm/lib/Target/Alpha:

AlphaISelPattern.cpp updated: 1.71 -> 1.72
---
Log message:

make fp div trick dependend on flag

---
Diffs of the changes:  (+2 -2)

 AlphaISelPattern.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/Target/Alpha/AlphaISelPattern.cpp
diff -u llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.71 llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.72
--- llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.71	Thu Mar 31 15:24:05 2005
+++ llvm/lib/Target/Alpha/AlphaISelPattern.cpp	Thu Mar 31 16:02:25 2005
@@ -37,7 +37,7 @@
                              cl::desc("Use the FP div instruction for integer div when possible"), 
                              cl::Hidden);
   cl::opt<bool> EnableAlpha("enable-alpha-ftoi", 
-                             cl::desc("Enablue use of ftoi* and itof* instructions (ev6 and higher)"), 
+                             cl::desc("Enable use of ftoi* and itof* instructions (ev6 and higher)"), 
                              cl::Hidden);
 }
 
@@ -1061,7 +1061,7 @@
   case ISD::SIGN_EXTEND_INREG:
     {
       //do SDIV opt for all levels of ints
-      if (N.getOperand(0).getOpcode() == ISD::SDIV)
+      if (EnableAlphaIDIV && N.getOperand(0).getOpcode() == ISD::SDIV)
       {
         Tmp1 = SelectExpr(N.getOperand(0).getOperand(0));
         Tmp2 = SelectExpr(N.getOperand(0).getOperand(1));






More information about the llvm-commits mailing list