[llvm] [AArch64] Add getCondCode() helper (NFC) (PR #150521)

David Green via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 31 08:33:40 PDT 2025


================
@@ -3390,6 +3390,12 @@ static void changeVectorFPCCToAArch64CC(ISD::CondCode CC,
   }
 }
 
+/// Like SelectionDAG::getCondCode(), but for AArch64 condition codes.
+static SDValue getCondCode(SelectionDAG &DAG, AArch64CC::CondCode CC) {
+  // TODO: Should be TargetConstant (need to s/imm/timm in patterns).
----------------
davemgreen wrote:

I see, it's an optimization. In that case it sounds OK, thanks.

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


More information about the llvm-commits mailing list