diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-05-15 06:42:04 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-05-15 06:42:04 +0000 |
| commit | ce3e2bff8bd22ef63d10923c9d0fbab922e00957 (patch) | |
| tree | 8083a0e36961f77f6e5c7e6abbd59f783633ca9f /lib/Transforms/IPO/GlobalOpt.cpp | |
| parent | d67c632d968157e228cf42b588f8759059730ec0 (diff) | |
selects can also reach here
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37081 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/GlobalOpt.cpp')
| -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 56f6390ea4..516ba4363e 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!"); } |
