[llvm] [AMDGPU] Unroll illegal vector TRUNCATE after legalization (PR #207761)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 6 08:48:28 PDT 2026
Juan Manuel Martinez =?utf-8?q?CaamaƱo?Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/207761 at github.com>
================
@@ -4738,6 +4738,14 @@ SDValue AMDGPUTargetLowering::performTruncateCombine(
}
}
+ // Unroll illegal vector truncate: This is normally done by the legalizer,
+ // however patterns introduced by the dag combiner may reintroduce the illegal
+ // pattern.
+ if (DCI.isAfterLegalizeDAG() && VT.isVector() &&
----------------
arsenm wrote:
Should probably try to avoid creating the illegal operation in the first place
https://github.com/llvm/llvm-project/pull/207761
More information about the llvm-commits
mailing list