[all-commits] [llvm/llvm-project] 45b306: [X86][CCMP] Fix invalid CCMP emission (#211161)

Phoebe Wang via All-commits all-commits at lists.llvm.org
Wed Jul 22 20:43:40 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 45b30651cf94ddb32676550cca7ddd3f6a5e66e0
      https://github.com/llvm/llvm-project/commit/45b30651cf94ddb32676550cca7ddd3f6a5e66e0
  Author: Phoebe Wang <phoebe.wang at intel.com>
  Date:   2026-07-23 (Thu, 23 Jul 2026)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelLowering.cpp
    M llvm/test/CodeGen/X86/apx/ccmp.ll

  Log Message:
  -----------
  [X86][CCMP] Fix invalid CCMP emission (#211161)

This patch ports AArch64's negation-aware conjunction algorithm to fix
invalid CCMP emission when OR nested inside an AND.

Example: https://godbolt.org/z/ave7f61hK

Before the change, the above case returns 5 rather the 9 when CCMP
enabled.

Assisted-by: Claude Opus 4.8



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