Skip to content

Commit 6355608

Browse files
committed
Do not touch permlane64
1 parent 3a7aa13 commit 6355608

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,8 +1215,10 @@ GCNTTIImpl::instCombineIntrinsic(InstCombiner &IC, IntrinsicInst &II) const {
12151215
// If the readfirstlane reads the result of an operation that exists
12161216
// both in the SALU and VALU, we may be able to hoist it higher in order
12171217
// to scalarize the expression.
1218-
if (Instruction *Res = hoistReadLaneThroughOperand(IC, II))
1219-
return Res;
1218+
if (IID != Intrinsic::amdgcn_permlane64) {
1219+
if (Instruction *Res = hoistReadLaneThroughOperand(IC, II))
1220+
return Res;
1221+
}
12201222

12211223
return std::nullopt;
12221224
}

0 commit comments

Comments
 (0)