[llvm-commits] CVS: llvm/lib/Transforms/Utils/SimplifyCFG.cpp

Chris Lattner sabre at nondot.org
Sun Jan 14 17:55:55 PST 2007



Changes in directory llvm/lib/Transforms/Utils:

SimplifyCFG.cpp updated: 1.111 -> 1.112
---
Log message:

Eliminate calls to isInteger, generalizing code and tightening checks as needed.


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

 SimplifyCFG.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff -u llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.111 llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.112
--- llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.111	Thu Jan 11 22:24:46 2007
+++ llvm/lib/Transforms/Utils/SimplifyCFG.cpp	Sun Jan 14 19:55:30 2007
@@ -1852,7 +1852,7 @@
         Value *CompVal = 0;
         std::vector<ConstantInt*> Values;
         bool TrueWhenEqual = GatherValueComparisons(Cond, CompVal, Values);
-        if (CompVal && CompVal->getType()->isInteger()) {
+        if (CompVal && CompVal->getType()->isIntegral()) {
           // There might be duplicate constants in the list, which the switch
           // instruction can't handle, remove them now.
           std::sort(Values.begin(), Values.end(), ConstantIntOrdering());






More information about the llvm-commits mailing list