[PATCH] D126184: [InstCombine] bitcast(logic(bitcast(X), bitcast(Y))) --> bitcast'(logic(bitcast'(X), Y))
Chenbing.Zheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun May 22 23:51:32 PDT 2022
Chenbing.Zheng created this revision.
Chenbing.Zheng added reviewers: spatel, RKSimon, benshi001.
Chenbing.Zheng added a project: LLVM.
Herald added a subscriber: hiraditya.
Herald added a project: All.
Chenbing.Zheng requested review of this revision.
Herald added subscribers: llvm-commits, jacquesguan.
Before this patch foldBitCastBitwiseLogic limite the destination
must have an integer element type.
But we can still eliminate one bitcast by doing the logic op
in the type of the input that has an integer element type.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D126184
Files:
llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
llvm/test/Transforms/InstCombine/bitcast-inseltpoison.ll
llvm/test/Transforms/InstCombine/bitcast.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126184.431290.patch
Type: text/x-patch
Size: 5060 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220523/d2b399fe/attachment.bin>
More information about the llvm-commits
mailing list