[all-commits] [llvm/llvm-project] 07c3b9: [InstCombine] Add simplification of two logical an...
Juneyoung Lee via All-commits
all-commits at lists.llvm.org
Sun Mar 7 09:39:25 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 07c3b97e184d5bd828b8a680cdce46e73f3db9fc
https://github.com/llvm/llvm-project/commit/07c3b97e184d5bd828b8a680cdce46e73f3db9fc
Author: Juneyoung Lee <aqjune at gmail.com>
Date: 2021-03-08 (Mon, 08 Mar 2021)
Changed paths:
M llvm/lib/Analysis/InstructionSimplify.cpp
M llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
M llvm/test/Transforms/InstCombine/select-safe-bool-transforms.ll
M llvm/test/Transforms/SimplifyCFG/merge-cond-stores.ll
Log Message:
-----------
[InstCombine] Add simplification of two logical and/ors
This is a patch that adds folding of two logical and/ors that share one variable:
a && (a && b) -> a && b
a && (a & b) -> a && b
...
This is towards removing the poison-unsafe select optimization (D93065 has more context).
Reviewed By: nikic
Differential Revision: https://reviews.llvm.org/D96945
More information about the All-commits
mailing list