[all-commits] [llvm/llvm-project] c1cd69: [InstSimplify] Simplify bool icmp with not in LHS
Hasyimi Bahrudin via All-commits
all-commits at lists.llvm.org
Thu Dec 9 13:27:00 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c1cd698a5228ef687641fdf34742dec80a08e085
https://github.com/llvm/llvm-project/commit/c1cd698a5228ef687641fdf34742dec80a08e085
Author: Hasyimi Bahrudin <hasyimi at gatech.edu>
Date: 2021-12-09 (Thu, 09 Dec 2021)
Changed paths:
M llvm/lib/Analysis/InstructionSimplify.cpp
M llvm/test/Transforms/InstSimplify/icmp-not-bool-constant.ll
Log Message:
-----------
[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
More information about the All-commits
mailing list