Skip to content

Commit ed96a71

Browse files
committed
Do not touch permlane64
1 parent a756fb0 commit ed96a71

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
@@ -1277,8 +1277,10 @@ GCNTTIImpl::instCombineIntrinsic(InstCombiner &IC, IntrinsicInst &II) const {
12771277
// If the readfirstlane reads the result of an operation that exists
12781278
// both in the SALU and VALU, we may be able to hoist it higher in order
12791279
// to scalarize the expression.
1280-
if (Instruction *Res = hoistReadLaneThroughOperand(IC, II))
1281-
return Res;
1280+
if (IID != Intrinsic::amdgcn_permlane64) {
1281+
if (Instruction *Res = hoistReadLaneThroughOperand(IC, II))
1282+
return Res;
1283+
}
12821284

12831285
return std::nullopt;
12841286
}

0 commit comments

Comments
 (0)