Alexander Kornienko
0b779b0daa
Revert "[AggressiveInstCombine] Fold strcmp for short string literals"
...
This reverts commit 5dde755188e34c0ba5304365612904476c8adfda,
cbfcf90152de5392a36d0a0241eef25f5e159eef and
8981520b19f2d2fe3d2bc80cf26318ee6b5b7473 due to a miscompile introduced in
8981520b19f2d2fe3d2bc80cf26318ee6b5b7473 (see
https://reviews.llvm.org/D154725#4568845 for details)
Differential Revision: https://reviews.llvm.org/D157430
2023-08-08 22:53:45 +02:00
Maksim Kita
cbfcf90152
[AggressiveInstCombine] Fold strcmp for short string literals with size 2
...
Fold strcmp for short string literals with size 2.
Depends D155742.
Differential Revision: https://reviews.llvm.org/D155743
2023-07-27 18:45:21 +03:00
Maksim Kita
0c8d3db5d2
[AggressiveInstCombine] Fold strcmp for short string literals with size 2 tests
...
Precommit tests for D155743.
Differential Revision: https://reviews.llvm.org/D155742
2023-07-27 18:45:21 +03:00
Maksim Kita
8981520b19
[AggressiveInstCombine] Fold strcmp for short string literals
...
Fold strcmp() against 1-char string literals.
This designates AggressiveInstCombine as the pass for libcalls
simplifications that may need to change the control flow graph.
Fixes https://github.com/llvm/llvm-project/issues/58003 .
Differential Revision: https://reviews.llvm.org/D154725
2023-07-19 17:12:27 +02:00
Maksim Kita
f9d1895d65
[AggressiveInstCombine] Fold strcmp for short string literals tests (NFC)
...
Precommit tests for D154725.
Differential Revision: https://reviews.llvm.org/D155053
2023-07-19 16:53:48 +02:00