Files
clang-p2996/llvm/lib/CodeGen/ExpandMemCmp.cpp
Craig Topper a4e47586b9 [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.
2025-01-03 10:23:13 -08:00

40 KiB