mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-16 14:31:16 +00:00
when merging two alias sets together, be sure to propagate the volatility of
the inner set. This fixes PR1435 and Transforms/LICM/2007-05-22-VolatileSink.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37305 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
74ee2b3b82
commit
f711fb7af8
@ -351,9 +351,11 @@ void AliasSetTracker::add(const AliasSetTracker &AST) {
|
||||
// Loop over all of the pointers in this alias set...
|
||||
AliasSet::iterator I = AS.begin(), E = AS.end();
|
||||
bool X;
|
||||
for (; I != E; ++I)
|
||||
addPointer(I.getPointer(), I.getSize(),
|
||||
(AliasSet::AccessType)AS.AccessTy, X);
|
||||
for (; I != E; ++I) {
|
||||
AliasSet &NewAS = addPointer(I.getPointer(), I.getSize(),
|
||||
(AliasSet::AccessType)AS.AccessTy, X);
|
||||
if (AS.isVolatile()) NewAS.setVolatile();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user