[llvm] [AMDGPU] Accept arbitrary sized sources in CalculateByteProvider (PR #70240)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 9 23:49:20 PST 2023


================
@@ -11302,8 +11379,16 @@ static SDValue matchPERM(SDNode *N, TargetLowering::DAGCombinerInfo &DCI) {
       return DAG.getBitcast(MVT::getIntegerVT(32), Op);
   }
 
+  SDValue OtherOp =
+      SecondSrc.has_value() ? *PermNodes[SecondSrc->first].Src : Op;
----------------
arsenm wrote:

Don't need has_value

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


More information about the llvm-commits mailing list