[llvm-commits] CVS: llvm/lib/Transforms/Utils/Local.cpp
Reid Spencer
reid at x10sys.com
Thu Apr 28 22:55:46 PDT 2005
Changes in directory llvm/lib/Transforms/Utils:
Local.cpp updated: 1.37 -> 1.38
---
Log message:
Remove optimizations that don't require both operands to be constant. These
are moved to simplify-libcalls pass.
---
Diffs of the changes: (+0 -10)
Local.cpp | 10 ----------
1 files changed, 10 deletions(-)
Index: llvm/lib/Transforms/Utils/Local.cpp
diff -u llvm/lib/Transforms/Utils/Local.cpp:1.37 llvm/lib/Transforms/Utils/Local.cpp:1.38
--- llvm/lib/Transforms/Utils/Local.cpp:1.37 Thu Apr 28 18:01:59 2005
+++ llvm/lib/Transforms/Utils/Local.cpp Fri Apr 29 00:55:35 2005
@@ -360,16 +360,6 @@
} else if (Name == "atan2")
return ConstantFP::get(Ty, atan2(Op1V,Op2V));
}
- else if (Name == "pow" && Op1V == 1.0) {
- return ConstantFP::get(Ty,1.0);
- }
- } else if (ConstantFP* Op2 = dyn_cast<ConstantFP>(Operands[1])) {
- double Op2V = Op2->getValue();
- if (Name == "pow")
- if (Op2V == 0.0)
- return ConstantFP::get(Ty,1.0);
- else if (Op2V == 1.0)
- return Operands[0];
}
}
return 0;
More information about the llvm-commits
mailing list