[PATCH] D130075: [InstCombine] Try not to demand low order bits for Add
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 19 04:06:35 PDT 2022
foad created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
foad requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Don't demand low order bits from the LHS of an Add if:
- they are not demanded in the result, and
- they are known to be zero in the RHS, so they can't possibly overflow and affect higher bit positions
This is intended to avoid a regression from a future patch to change
the order of canonicalization of ADD and AND.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D130075
Files:
llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
llvm/test/Transforms/LoopVectorize/X86/float-induction-x86.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130075.445774.patch
Type: text/x-patch
Size: 9314 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220719/15742354/attachment.bin>
More information about the llvm-commits
mailing list