mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
selects can also reach here
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37081 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d67c632d96
commit
ce3e2bff8b
@ -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!");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user