[llvm] [AMDGPU][SDAG] Legalise v2i32 or/xor/and instructions to make use of 64-bit wide instructions (PR #140694)

Chris Jackson via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 23 08:11:22 PDT 2025


================
@@ -4056,6 +4056,53 @@ SDValue AMDGPUTargetLowering::performShlCombine(SDNode *N,
   SDLoc SL(N);
   SelectionDAG &DAG = DCI.DAG;
 
+  // When the shl64_reduce optimisation code is passed through vector
----------------
chrisjbris wrote:

I don't believe so, it was my understanding ISel was struggling with the operand to the scalar shl being an extract_element from the vector and result.

https://github.com/llvm/llvm-project/pull/140694


More information about the llvm-commits mailing list