[PATCH] D95086: [DAGCombiner] Transform (zext (select c, load1, load2)) -> (select c, zextload1, zextload2)

Guozhi Wei via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 20 13:14:14 PST 2021


Carrot created this revision.
Herald added subscribers: ecnelises, pengfei, hiraditya.
Carrot requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

If extload is legal, following transform

  (zext (select c, load1, load2)) -> (select c, zextload1, zextload2)

can save one ext instruction.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D95086

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/X86/select-ext.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95086.317986.patch
Type: text/x-patch
Size: 3450 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210120/3134ba86/attachment.bin>


More information about the llvm-commits mailing list