aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/Module.cpp
diff options
context:
space:
mode:
authorAustin Chang <austin880625@gmail.com>2023-05-25 12:10:31 -0500
committerNoah Goldstein <goldstein.w.n@gmail.com>2023-05-25 13:41:32 -0500
commit68c5d46b6ec46c59afa052d2b2945ca7b22f58d6 (patch)
tree8985aafa46535f1a10d2356a0d23da9749fae79a /clang/lib/Basic/Module.cpp
parent1d1f7eeee6bf38ef35083f676875950b4f5528f7 (diff)
downloadllvm-68c5d46b6ec46c59afa052d2b2945ca7b22f58d6.zip
llvm-68c5d46b6ec46c59afa052d2b2945ca7b22f58d6.tar.gz
llvm-68c5d46b6ec46c59afa052d2b2945ca7b22f58d6.tar.bz2
[InstCombine] Improve bitreverse optimization
This patch utilizes the helper function implemented in D149699 and thus folds the following cases: ``` bitreverse(logic_op(x, bitreverse(y))) -> logic_op(bitreverse(x), y) bitreverse(logic_op(bitreverse(x), y)) -> logic_op(x, bitreverse(y)) bitreverse(logic_op(bitreverse(x), bitreverse(y))) -> logic_op(x, y) in multiuse case ``` Reviewed By: goldstein.w.n, RKSimon Differential Revision: https://reviews.llvm.org/D151246
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions