[all-commits] [llvm/llvm-project] cd6858: [InstCombine] Add tests for folding `(icmp eq/ne (...

goldsteinn via All-commits all-commits at lists.llvm.org
Thu Oct 3 11:05:39 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cd6858c74ee76f3270d39f110a31ef1b8852695f
      https://github.com/llvm/llvm-project/commit/cd6858c74ee76f3270d39f110a31ef1b8852695f
  Author: Noah Goldstein <goldstein.w.n at gmail.com>
  Date:   2024-10-03 (Thu, 03 Oct 2024)

  Changed paths:
    A llvm/test/Transforms/InstCombine/icmp-signmask.ll

  Log Message:
  -----------
  [InstCombine] Add tests for folding `(icmp eq/ne (and X, -P2), INT_MIN)`; NFC


  Commit: a64643688526114b50c25b3eda8a57855bd2be87
      https://github.com/llvm/llvm-project/commit/a64643688526114b50c25b3eda8a57855bd2be87
  Author: Noah Goldstein <goldstein.w.n at gmail.com>
  Date:   2024-10-03 (Thu, 03 Oct 2024)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
    M llvm/test/Transforms/InstCombine/icmp-signmask.ll
    M llvm/test/Transforms/InstCombine/icmp.ll

  Log Message:
  -----------
  [InstCombine] Folding `(icmp eq/ne (and X, -P2), INT_MIN)`

Folds to `(icmp slt/sge X, (INT_MIN + P2))`

Proofs: https://alive2.llvm.org/ce/z/vpNFY5

Closes #110880


Compare: https://github.com/llvm/llvm-project/compare/61f8a7f61890...a64643688526

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list