projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d67c632
)
selects can also reach here
author
Chris Lattner
<sabre@nondot.org>
Tue, 15 May 2007 06:42:04 +0000
(06:42 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 15 May 2007 06:42:04 +0000
(06:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37081
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/IPO/GlobalOpt.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/GlobalOpt.cpp
b/lib/Transforms/IPO/GlobalOpt.cpp
index 56f6390ea4b55cbe5e6bccbb771180cfbe03b111..516ba4363ee590984cfb2560d0450d46be125dac 100644
(file)
--- a/
lib/Transforms/IPO/GlobalOpt.cpp
+++ b/
lib/Transforms/IPO/GlobalOpt.cpp
@@
-623,9
+623,10
@@
static bool OptimizeAwayTrappingUsesOfLoads(GlobalVariable *GV, Constant *LV) {
Loads.push_back(LI);
Changed |= OptimizeAwayTrappingUsesOfValue(LI, LV);
} else {
- // If we get here we could have stores,
load
s, or phi nodes whose values
+ // If we get here we could have stores,
select
s, 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!");
}