[PATCH] D108129: [DAGCombiner] Teach combineShiftToMULH to handle constant and const splat vector.

Jianjian Guan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 18 00:45:40 PDT 2021


jacquesguan updated this revision to Diff 367134.
jacquesguan added a comment.

Update mulhu case for (mulhu x, (1 << c)) -> x >> (bitwidth - c).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108129/new/

https://reviews.llvm.org/D108129

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/RISCV/rvv/vmulh-sdnode-rv32.ll
  llvm/test/CodeGen/RISCV/rvv/vmulhu-sdnode-rv32.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108129.367134.patch
Type: text/x-patch
Size: 32560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210818/744c8abd/attachment.bin>


More information about the llvm-commits mailing list