[PATCH] D31525: InstSimplify: Add a hook for shufflevector
Zvi Rackover via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 31 01:14:12 PDT 2017
zvi created this revision.
Add a hook for simplification of shufflevector's with the following rules:
- Constant folding - NFC, as it was already being done by the default handler.
- A trivial fold when the shuffle mask is undef to show the hook is firing and affecting one of the test-cases.
Repository:
rL LLVM
https://reviews.llvm.org/D31525
Files:
include/llvm/Analysis/ConstantFolding.h
include/llvm/Analysis/InstructionSimplify.h
lib/Analysis/InstructionSimplify.cpp
test/Transforms/InstSimplify/shufflevector.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31525.93599.patch
Type: text/x-patch
Size: 4375 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170331/537c5c2d/attachment.bin>
More information about the llvm-commits
mailing list