mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
LICM pass now understands invariant load metadata. Nothing generates this yet so it will currently never get used in real tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144107 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -369,6 +369,8 @@ bool LICM::canSinkOrHoistInst(Instruction &I) {
|
||||
// in the same alias set as something that ends up being modified.
|
||||
if (AA->pointsToConstantMemory(LI->getOperand(0)))
|
||||
return true;
|
||||
if (LI->getMetadata(LI->getContext().getMDKindID("invariant.load")))
|
||||
return true;
|
||||
|
||||
// Don't hoist loads which have may-aliased stores in loop.
|
||||
uint64_t Size = 0;
|
||||
|
||||
Reference in New Issue
Block a user