[all-commits] [llvm/llvm-project] 1198c3: [X86] PromoteMaskArithmetic - use ISD::isBitwiseLo...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Fri Feb 9 02:34:42 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1198c3aaff63d4ce63b760b4effc14babc0bdd8a
      https://github.com/llvm/llvm-project/commit/1198c3aaff63d4ce63b760b4effc14babc0bdd8a
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2024-02-09 (Fri, 09 Feb 2024)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp

  Log Message:
  -----------
  [X86] PromoteMaskArithmetic - use ISD::isBitwiseLogicOp wrapper. NFC.


  Commit: 713fe6dfd4803fba41f2102479580bed058ca0b3
      https://github.com/llvm/llvm-project/commit/713fe6dfd4803fba41f2102479580bed058ca0b3
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2024-02-09 (Fri, 09 Feb 2024)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp

  Log Message:
  -----------
  [X86] PromoteMaskArithmetic - consistently use SDValue instead of underlying SDNode. NFC.


  Commit: 3902f9b6e2d925d50f9a4861d78e5aba07b6ef11
      https://github.com/llvm/llvm-project/commit/3902f9b6e2d925d50f9a4861d78e5aba07b6ef11
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2024-02-09 (Fri, 09 Feb 2024)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp

  Log Message:
  -----------
  [X86] PromoteMaskArithmetic - explicitly attempt to constant fold zext(c) instead of relying on getNode()

Don't rely on isBuildVectorOfConstantSDNodes/getNode to constant fold, this could also help in cases where the constant is behind a bitcast.

Noticed while investigating #80668


Compare: https://github.com/llvm/llvm-project/compare/75798f21ca76...3902f9b6e2d9


More information about the All-commits mailing list