aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorHasyimi Bahrudin <hasyimi@gatech.edu>2021-12-09 12:03:59 -0500
committerSanjay Patel <spatel@rotateright.com>2021-12-09 16:26:46 -0500
commitc1cd698a5228ef687641fdf34742dec80a08e085 (patch)
tree5de66e95c4950ad0e3f79942c08932fde2066bfa /clang/lib/Frontend/CompilerInvocation.cpp
parente3a58dd0308c650df2a04a08eea2f6741c335230 (diff)
downloadllvm-c1cd698a5228ef687641fdf34742dec80a08e085.zip
llvm-c1cd698a5228ef687641fdf34742dec80a08e085.tar.gz
llvm-c1cd698a5228ef687641fdf34742dec80a08e085.tar.bz2
[InstSimplify] Simplify bool icmp with not in LHS
Refer to https://llvm.org/PR52546. Simplifies the following cases: not(X) == 0 -> X != 0 -> X not(X) <=u 0 -> X >u 0 -> X not(X) >=s 0 -> X <s 0 -> X not(X) != 1 -> X == 1 -> X not(X) <=u 1 -> X >=u 1 -> X not(X) >s 1 -> X <=s -1 -> X Differential Revision: https://reviews.llvm.org/D114666
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions