[llvm] [AArch64][SVE2] Lower OR to SLI/SRI (PR #77555)

David Green via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 10 07:24:52 PST 2024


================
@@ -12618,10 +12691,12 @@ static SDValue tryLowerToSLI(SDNode *N, SelectionDAG &DAG) {
     return SDValue();
 
   SDValue X = And.getOperand(0);
-  SDValue Y = Shift.getOperand(0);
+  SDValue Y = (ShiftHasPredOp) ? Shift.getOperand(1) : Shift.getOperand(0);
----------------
davemgreen wrote:

Can remove the () around ShiftHasPredOp.

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


More information about the llvm-commits mailing list