[PATCH] D44402: [DAGCombiner] Fold (zext (and/or/xor (shl/shr (load x), cst), cst))

Guozhi Wei via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 26 11:21:33 PDT 2018


Carrot updated this revision to Diff 139823.
Carrot marked an inline comment as done.
Carrot added a comment.

Since both original ShiftVT and shift value are used, we can simply use the original shift constant node.


https://reviews.llvm.org/D44402

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/AArch64/zext-logic-shift-load.ll
  test/CodeGen/ARM/zext-logic-shift-load.ll
  test/CodeGen/X86/zext-logicop-shift-load.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44402.139823.patch
Type: text/x-patch
Size: 8283 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180326/3b0428ff/attachment.bin>


More information about the llvm-commits mailing list