[all-commits] [llvm/llvm-project] fdbf2b: [InstSimplify] (x || y) && (x || !y) --> x
RotateRight via All-commits
all-commits at lists.llvm.org
Thu Oct 7 09:26:46 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fdbf2bb4eed187a7267780edee003483dee12739
https://github.com/llvm/llvm-project/commit/fdbf2bb4eed187a7267780edee003483dee12739
Author: Sanjay Patel <spatel at rotateright.com>
Date: 2021-10-07 (Thu, 07 Oct 2021)
Changed paths:
M llvm/lib/Analysis/InstructionSimplify.cpp
M llvm/test/Transforms/InstSimplify/select-logical.ll
Log Message:
-----------
[InstSimplify] (x || y) && (x || !y) --> x
https://alive2.llvm.org/ce/z/4BE33w
This is the logical (select-form) equivalent of the bitwise logic fold:
e36d351d19b1
This is another part of solving the regression from:
https://llvm.org/PR52077
More information about the All-commits
mailing list