[PATCH] D111221: [AArch64][SVE] Improve code generation for VLS i1 masks

Bradley Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 25 03:34:21 PDT 2021


bsmith added inline comments.


================
Comment at: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:36
 #include "llvm/CodeGen/CallingConvLower.h"
+#include "llvm/CodeGen/ISDOpcodes.h"
 #include "llvm/CodeGen/MachineBasicBlock.h"
----------------
Rogue include?


================
Comment at: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:16047
+    auto OrigPred = LHS->getOperand(0)->getOperand(0)->getOperand(0);
+    if (Pred.getConstantOperandVal(0) == OrigPred.getConstantOperandVal(0))
+      return LHS->getOperand(0);
----------------
Is this assuming that Pred and OrigPred and ptrues? If they're not, won't this break?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111221/new/

https://reviews.llvm.org/D111221



More information about the llvm-commits mailing list