mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
Do not promote volatile alias sets into registers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10458 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -647,7 +647,7 @@ void LICM::findPromotableValuesInLoop(
|
|||||||
// We can promote this alias set if it has a store, if it is a "Must" alias
|
// 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.
|
// set, and if the pointer is loop invariant.
|
||||||
if (!AS.isForwardingAliasSet() && AS.isMod() && AS.isMustAlias() &&
|
if (!AS.isForwardingAliasSet() && AS.isMod() && AS.isMustAlias() &&
|
||||||
isLoopInvariant(AS.begin()->first)) {
|
!AS.isVolatile() && isLoopInvariant(AS.begin()->first)) {
|
||||||
assert(AS.begin() != AS.end() &&
|
assert(AS.begin() != AS.end() &&
|
||||||
"Must alias set should have at least one pointer element in it!");
|
"Must alias set should have at least one pointer element in it!");
|
||||||
Value *V = AS.begin()->first;
|
Value *V = AS.begin()->first;
|
||||||
|
Reference in New Issue
Block a user