[llvm] [X86] Add APX imulzu support. (PR #116806)

Daniel Zabawa via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 20 07:57:00 PST 2024


================
@@ -58919,6 +58919,12 @@ bool X86TargetLowering::IsDesirableToPromoteOp(SDValue Op, EVT &PVT) const {
     if (IsFoldableAtomicRMW(N0, Op) ||
         (Commute && IsFoldableAtomicRMW(N1, Op)))
       return false;
+    // When ZU is enabled, we prefer to not promote for MUL by a constant,
----------------
daniel-zabawa wrote:

IMULZU only supports immediate operands. Other IMUL variants use NDD encodings and aren't covered by this change.

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


More information about the llvm-commits mailing list