Skip to content

Commit ecb2731

Browse files
scottp101sys_zuul
authored andcommitted
vectorize across invariant load in MemOpt.
Change-Id: Ic327ee4b5432c3542ac58a9f6d30b34e112bae45
1 parent 53b1da2 commit ecb2731

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

IGC/Compiler/CISACodeGen/MemOpt.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,9 @@ bool MemOpt::isSafeToMergeStores(
11601160
// Arrange CheckList as the outer loop to favor the case where there are
11611161
// back-to-back stores only.
11621162
for (auto* I : CheckList) {
1163+
if (I->getMetadata(LLVMContext::MD_invariant_load))
1164+
continue;
1165+
11631166
MemoryLocation A = getLocation(I);
11641167

11651168
for (auto& S : Stores) {

0 commit comments

Comments
 (0)