Skip to content

Commit 23b8a7d

Browse files
authored
[AMD] Drop unnecessary check to fix build (#7329)
Checking ISAFamily is enough. This fixes the build due to mid-air collision.
1 parent 3a17b5c commit 23b8a7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

third_party/amd/lib/TritonAMDGPUToLLVM/TargetInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ bool TargetInfo::warpReduce(RewriterBase &rewriter, Location loc,
285285
unsigned interleave) const {
286286
auto b = TritonLLVMOpBuilder(loc, rewriter);
287287

288-
if (isCDNA() && getISAFamily() == ISAFamily::CDNA4 &&
288+
if (getISAFamily() == ISAFamily::CDNA4 &&
289289
warpReduceSwap16or32(rewriter, loc, acc, op, numLaneToReduce, interleave))
290290
return true;
291291
if (numLaneToReduce != getWarpSize())

0 commit comments

Comments
 (0)