[all-commits] [llvm/llvm-project] f59742: [X86] getIntImmCostInst - recognise i64 ICMP EQ/NE...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Fri Jun 6 02:22:03 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f59742c1ea675a0af7ce4eb8d3c3e402c137efae
      https://github.com/llvm/llvm-project/commit/f59742c1ea675a0af7ce4eb8d3c3e402c137efae
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2025-06-06 (Fri, 06 Jun 2025)

  Changed paths:
    M llvm/lib/Target/X86/X86TargetTransformInfo.cpp
    M llvm/test/CodeGen/X86/pr142513.ll
    M llvm/test/CodeGen/X86/pr62145.ll

  Log Message:
  -----------
  [X86] getIntImmCostInst - recognise i64 ICMP EQ/NE special cases (#142812)

If the lower 32-bits of a i64 value are known to be zero, then icmp
lowering will shift+truncate down to a i32 allowing the immediate to be
embedded.

There's a lot more that could be done here to match icmp lowering, but
this PR just focuses on known regressions.

Fixes #142513
Fixes #62145



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