[llvm] [AMDGPU] Optimize rotate/funnel shift pattern matching in instruction selection (PR #149817)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 1 02:15:13 PDT 2025


================
@@ -4105,6 +4112,168 @@ void AMDGPUDAGToDAGISel::PostprocessISelDAG() {
   } while (IsModified);
 }
 
+// Pattern matching for rotate/funnel shift operations
+// and converts them to v_alignbit_b32 instructions
----------------
arsenm wrote:

Why does this need manual selection? Several of these cases look like they belong in the funnel shift combines or could be moved to patterns 

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


More information about the llvm-commits mailing list