mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-23 17:28:54 +00:00
Treat free operations as volatile, since they cannot be moved. This fixes
Transforms/LICM/2005-03-24-LICM-Aggregate-Crash.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20830 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -288,6 +288,9 @@ bool AliasSetTracker::add(FreeInst *FI) {
|
|||||||
bool NewPtr;
|
bool NewPtr;
|
||||||
AliasSet &AS = addPointer(FI->getOperand(0), ~0,
|
AliasSet &AS = addPointer(FI->getOperand(0), ~0,
|
||||||
AliasSet::Mods, NewPtr);
|
AliasSet::Mods, NewPtr);
|
||||||
|
|
||||||
|
// Free operations are volatile ops (cannot be moved).
|
||||||
|
AS.setVolatile();
|
||||||
return NewPtr;
|
return NewPtr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user