[PATCH] D48278: [SelectionDAG] Fold redundant masking operations of shifted value

Diogo N. Sampaio via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 9 07:21:02 PDT 2018


dnsampaio updated this revision to Diff 154598.
dnsampaio added a comment.

Added checks for shift opcodes as to early exit if not found.
Validate mask widths (although it would be a error in the code if they are of different).


https://reviews.llvm.org/D48278

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/AArch64/FoldRedundantShiftedMasking.ll
  test/CodeGen/ARM/FoldRedundantShiftedMasking.ll
  test/CodeGen/X86/pr32329.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48278.154598.patch
Type: text/x-patch
Size: 13055 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180709/cd2e5ab2/attachment.bin>


More information about the llvm-commits mailing list