[PATCH] D34141: [X86] Recognize constant arrays with special values and replace loads from it with subtract and shift instructions, which then will be replaced by X86 BZHI machine instruction.

Ayman Musa via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 17 08:17:46 PDT 2017


aymanmus updated this revision to Diff 115575.
aymanmus retitled this revision from "[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." to "[X86] Recognize constant arrays with special values and replace loads from it with subtract and shift instructions, which then will be replaced by X86 BZHI machine instruction.".
aymanmus edited the summary of this revision.
aymanmus added a comment.

Total redesign to the previous solution.
moved the transformation to a more "natural" area.


https://reviews.llvm.org/D34141

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/replace-load-and-with-bzhi.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34141.115575.patch
Type: text/x-patch
Size: 10540 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170917/ab1bff09/attachment.bin>


More information about the llvm-commits mailing list