Skip to content

Commit 7ab7170

Browse files
committed
Hardcode allow hoist of readfirstlane on MI350
Change-Id: I62cc4257f759d1bc8ad2bc0bc1812bb63794a325
1 parent 373fbf2 commit 7ab7170

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Transforms/Scalar/LICM.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,6 +1163,9 @@ bool llvm::canSinkOrHoistInst(Instruction &I, AAResults *AA, DominatorTree *DT,
11631163
SinkAndHoistLICMFlags &Flags,
11641164
OptimizationRemarkEmitter *ORE) {
11651165
// If we don't understand the instruction, bail early.
1166+
if (auto II = dyn_cast<IntrinsicInst>(&I)) {
1167+
return II->getIntrinsicID() == 3036;
1168+
}
11661169
if (!isHoistableAndSinkableInst(I))
11671170
return false;
11681171

0 commit comments

Comments
 (0)