forked from OSchip/llvm-project
Do not promote volatile alias sets into registers
llvm-svn: 10458
This commit is contained in:
parent
0a14060ce2
commit
d1c371c32c
|
@ -647,7 +647,7 @@ void LICM::findPromotableValuesInLoop(
|
|||
// We can promote this alias set if it has a store, if it is a "Must" alias
|
||||
// set, and if the pointer is loop invariant.
|
||||
if (!AS.isForwardingAliasSet() && AS.isMod() && AS.isMustAlias() &&
|
||||
isLoopInvariant(AS.begin()->first)) {
|
||||
!AS.isVolatile() && isLoopInvariant(AS.begin()->first)) {
|
||||
assert(AS.begin() != AS.end() &&
|
||||
"Must alias set should have at least one pointer element in it!");
|
||||
Value *V = AS.begin()->first;
|
||||
|
|
Loading…
Reference in New Issue