[PATCH] D45537: [CodeGenPrepare] Move Extension Instructions Through Logical And Shift Instructions

Guozhi Wei via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 11 14:49:09 PDT 2018


Carrot created this revision.

CodeGenPrepare pass move extension instructions close to load instructions in different BB, so they can be combined later. But the extension instructions can't move through logical and shift instructions in current implementation. This patch enables this enhancement, so we can eliminate more extension instructions.


Repository:
  rL LLVM

https://reviews.llvm.org/D45537

Files:
  lib/CodeGen/CodeGenPrepare.cpp
  test/CodeGen/X86/cmov.ll
  test/CodeGen/X86/pr35765.ll
  test/Transforms/CodeGenPrepare/X86/ext-logicop.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45537.142076.patch
Type: text/x-patch
Size: 8291 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180411/2cf26615/attachment.bin>


More information about the llvm-commits mailing list