[PATCH] D78272: [DAGCombiner] Combine shifts into multiply-high

Amy Kwan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 26 09:11:38 PDT 2020


amyk updated this revision to Diff 266233.
amyk retitled this revision from "[PowerPC] DAG Combine to transform shifts into multiply-high " to "[DAGCombiner] Combine shifts into multiply-high ".
amyk edited the summary of this revision.
amyk added a comment.
Herald added subscribers: ecnelises, steven.zhang.

Moved the function to combine shifts into multiply high into `DAGCombiner.cpp`. For now, this combine runs only on PowerPC as PowerPC has an implementation of the `isMulhCheaperThanMulShift` TLI query.


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

https://reviews.llvm.org/D78272

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/PowerPC/combine-to-mulh-shift-amount.ll
  llvm/test/CodeGen/PowerPC/mul-high.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78272.266233.patch
Type: text/x-patch
Size: 10920 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200526/4cc1daf5/attachment.bin>


More information about the llvm-commits mailing list