Files
clang-p2996/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
Nikita Popov 21827268ad [InstCombine] Fold add of zext and sext of i1
(zext a) + (sext a) is 0 if a is a bool.

The regression is in a fuzzer-generated test.

Proof: https://alive2.llvm.org/ce/z/KotnN6
2023-07-14 14:52:13 +02:00

99 KiB