Loads.push_back(LI);
Changed |= OptimizeAwayTrappingUsesOfValue(LI, LV);
} else {
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
- assert((isa<StoreInst>(*GUI) || isa<PHINode>(*GUI)) &&
+ assert((isa<StoreInst>(*GUI) || isa<PHINode>(*GUI) ||
+ isa<SelectInst>(*GUI)) &&
"Only expect load and stores!");
}
"Only expect load and stores!");
}