[llvm-commits] CVS: llvm/lib/Transforms/IPO/GlobalOpt.cpp
Chris Lattner
sabre at nondot.org
Mon May 14 23:42:23 PDT 2007
Changes in directory llvm/lib/Transforms/IPO:
GlobalOpt.cpp updated: 1.106 -> 1.107
---
Log message:
selects can also reach here
---
Diffs of the changes: (+3 -2)
GlobalOpt.cpp | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Index: llvm/lib/Transforms/IPO/GlobalOpt.cpp
diff -u llvm/lib/Transforms/IPO/GlobalOpt.cpp:1.106 llvm/lib/Transforms/IPO/GlobalOpt.cpp:1.107
--- llvm/lib/Transforms/IPO/GlobalOpt.cpp:1.106 Sun May 13 16:28:07 2007
+++ llvm/lib/Transforms/IPO/GlobalOpt.cpp Tue May 15 01:42:04 2007
@@ -623,9 +623,10 @@
Loads.push_back(LI);
Changed |= OptimizeAwayTrappingUsesOfValue(LI, LV);
} else {
- // If we get here we could have stores, loads, or phi nodes whose values
+ // If we get here we could have stores, selects, or phi nodes whose values
// are loaded.
- assert((isa<StoreInst>(*GUI) || isa<PHINode>(*GUI)) &&
+ assert((isa<StoreInst>(*GUI) || isa<PHINode>(*GUI) ||
+ isa<SelectInst>(*GUI)) &&
"Only expect load and stores!");
}
More information about the llvm-commits
mailing list