[PATCH] D83058: [InstCombine] Add sext(ashr(shl(trunc(x),c),c)) folding support for non-uniform vectors
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 2 09:42:37 PDT 2020
RKSimon created this revision.
RKSimon added reviewers: spatel, lebedev.ri.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
Replacing m_ConstantInt with m_Constant permits folding of non-uniform vectors as well as a scalar/uniform vectors.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D83058
Files:
llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
llvm/test/Transforms/InstCombine/sext.ll
llvm/test/Transforms/InstCombine/trunc.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83058.275149.patch
Type: text/x-patch
Size: 5494 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200702/876cb0b2/attachment.bin>
More information about the llvm-commits
mailing list