[PATCH] D34141: [X86] Recognize constant arrays with special values and replace loads from it with subtract and shift instructions, which then may be replaced by BZHI machine instruction.
Ayman Musa via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 21 04:29:26 PDT 2017
aymanmus updated this revision to Diff 103348.
aymanmus added a comment.
Herald added a subscriber: mgorny.
Moving the transformation to an independent pass, which currently runs only on X86, as suggested by @delena.
https://reviews.llvm.org/D34141
Files:
include/llvm/CodeGen/Passes.h
include/llvm/InitializePasses.h
lib/CodeGen/CMakeLists.txt
lib/CodeGen/SubstituteLoadWithSubShr.cpp
lib/Target/X86/X86TargetMachine.cpp
test/CodeGen/X86/replace-load-with-sub-shr.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34141.103348.patch
Type: text/x-patch
Size: 10793 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170621/14ebb3c7/attachment.bin>
More information about the llvm-commits
mailing list