[PATCH] D93617: [DemandedBits] Add a whitelist when computing demanded bits of Trunc Instruction
guopeilin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 21 00:10:08 PST 2020
guopeilin created this revision.
Herald added a subscriber: hiraditya.
guopeilin requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
When computing demanded bits for Instruction::Trunc's operands, for
some cases, such as shift, remainder and selection, we cannot blindly
say these operands have the same live bits as the trunc instruction itself.
To be conservative, we can add a whitelist of instructions that are
always truncation friendly.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D93617
Files:
llvm/lib/Analysis/DemandedBits.cpp
llvm/test/Transforms/LoopVectorize/avoid-truncate-icmp-operands.ll
llvm/test/Transforms/LoopVectorize/avoid-truncate-remainder-operands.ll
llvm/test/Transforms/LoopVectorize/avoid-truncate-shift-operands.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93617.313030.patch
Type: text/x-patch
Size: 6620 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201221/e65a3dbd/attachment.bin>
More information about the llvm-commits
mailing list