[all-commits] [llvm/llvm-project] a4e475: [ExpandMemCmp] Recognize canonical form of (icmp s...
Craig Topper via All-commits
all-commits at lists.llvm.org
Fri Jan 3 10:23:34 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a4e47586b9c0566761b7fb704011da6ded823398
https://github.com/llvm/llvm-project/commit/a4e47586b9c0566761b7fb704011da6ded823398
Author: Craig Topper <craig.topper at sifive.com>
Date: 2025-01-03 (Fri, 03 Jan 2025)
Changed paths:
M llvm/lib/CodeGen/ExpandMemCmp.cpp
M llvm/test/CodeGen/AArch64/memcmp.ll
M llvm/test/CodeGen/RISCV/memcmp.ll
M llvm/test/CodeGen/X86/memcmp.ll
Log Message:
-----------
[ExpandMemCmp] Recognize canonical form of (icmp sle/sge X, 0) in getMemCmpOneBlock. (#121540)
This code recognizes special cases where the result of memcmp is
compared with 0. If the compare is sle/sge, then InstCombine
canonicalizes to (icmp slt X, 1) or (icmp sgt X, -1). We should
recognize those patterns too.
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