[llvm] [AMDGPU] Legalize 64bit elements for BUILD_VECTOR on gfx942 (PR #145052)
Janek van Oirschot via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 18 06:26:43 PDT 2025
================
@@ -16037,6 +16165,14 @@ SDValue SITargetLowering::PerformDAGCombine(SDNode *N,
return performInsertVectorEltCombine(N, DCI);
case ISD::FP_ROUND:
return performFPRoundCombine(N, DCI);
+ case ISD::BITCAST: {
+ // Avoid undoing build_vector with 64b elements if subtarget supports 64b
+ // movs (i.e., avoid inf loop through combines).
+ const GCNSubtarget *ST = getSubtarget();
+ if (ST->hasMovB64())
+ return SDValue();
+ break;
----------------
JanekvO wrote:
Opened #154115
https://github.com/llvm/llvm-project/pull/145052
More information about the llvm-commits
mailing list