[PATCH] D14340: [DAGCombiner] Improve zextload optimization.

Geoff Berry via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 4 11:02:22 PST 2015


gberry created this revision.
gberry added reviewers: resistor, mcrosier.
gberry added a subscriber: llvm-commits.

Don't fold
  (zext (and (load x), cst)) -> (and (zextload x), (zext cst))
if
  (and (load x) cst)
will match as a zextload already and has additional users.

http://reviews.llvm.org/D14340

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/AArch64/free-zext.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14340.39219.patch
Type: text/x-patch
Size: 6856 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151104/100991e5/attachment.bin>


More information about the llvm-commits mailing list