[llvm] [AMDGPU] Add pattern to select scalar ops for fshr with uniform operands (PR #165295)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 5 03:58:15 PST 2025


================
@@ -207,6 +207,17 @@ class DivergentBinFrag<SDPatternOperator Op> : PatFrag <
   let GISelPredicateCode = [{return true;}];
 }
 
+class DivergentTernaryFrag<SDPatternOperator Op> : PatFrag <
----------------
jayfoad wrote:

Can you check whether this is reqlly required? I.e. do any tests fail if you remove this from the V_ALIGNBIT patterns?

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


More information about the llvm-commits mailing list