diff options
author | Tanya Lattner <tonic@nondot.org> | 2007-05-18 06:03:56 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2007-05-18 06:03:56 +0000 |
commit | 8115f14def42c0472b994f8fa9eb8827fe4dc67d (patch) | |
tree | b09b9e2260b6add2b5759c1fef8b8cee77160353 | |
parent | c563689a2add8456e4ea5d4e2de045a09f1e1d2b (diff) | |
download | llvm-8115f14def42c0472b994f8fa9eb8827fe4dc67d.tar.gz |
Merge from mainline.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_20@37214 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/IPO/GlobalOpt.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/GlobalOpt.cpp b/lib/Transforms/IPO/GlobalOpt.cpp index 56f6390ea4b5..516ba4363ee5 100644 --- 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, 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!"); } |