Files
clang-p2996/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
Nikita Popov de2b6cb6ab [InstCombine] Fold icmp over select of cmp more aggressively (#105536)
When folding an icmp into a select, treat an icmp of a constant with a
one-use ucmp/scmp intrinsic as a simplification. These comparisons will
reduce down to an icmp.

This addresses a regression seen in Rust and also in llvm-opt-benchmark.
2024-08-22 09:47:35 +02:00

328 KiB