[llvm] [X86] Improve transform for add-like nodes to `add` (PR #83691)

via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 3 11:48:23 PST 2024


================
@@ -5294,11 +5294,26 @@ void X86DAGToDAGISel::Select(SDNode *Node) {
       return;
     if (tryVPTERNLOG(Node))
       return;
-
     [[fallthrough]];
   case ISD::ADD:
     if (Opcode == ISD::ADD && matchBitExtract(Node))
       return;
+
+    // Convert addlike to add before final selection. Do this before we drop
+    // flags like `disjoint`.
----------------
goldsteinn wrote:

ahh, so this patch is essentially not useful, it should just be what you have.

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


More information about the llvm-commits mailing list