[PATCH] D91846: [SelectionDAG][X86][PowerPC][Mips] Replace the default implementation of LowerOperationWrapper with the X86 and PowerPC version.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 19 23:57:10 PST 2020


craig.topper created this revision.
craig.topper added reviewers: efriedma, spatel, RKSimon.
Herald added subscribers: ecnelises, steven.zhang, pengfei, shchenz, atanasyan, jrtc27, kbarton, hiraditya, arichardson, nemanjai, sdardis.
Herald added a project: LLVM.
craig.topper requested review of this revision.

The default version only works if the returned node has a single
result. The X86 and PowerPC versions support multiple results
and allow a single result to be returned from a node with
multiple outputs. And allow a single result that is not result 0
of the node.

Also replace the Mips version since the new version should work
for it. The original version handled multiple results, but only
if the new node and original node had the same number of results.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D91846

Files:
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  llvm/lib/Target/Mips/MipsISelLowering.cpp
  llvm/lib/Target/Mips/MipsISelLowering.h
  llvm/lib/Target/PowerPC/PPCISelLowering.cpp
  llvm/lib/Target/PowerPC/PPCISelLowering.h
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/lib/Target/X86/X86ISelLowering.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91846.306610.patch
Type: text/x-patch
Size: 7340 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201120/0d350343/attachment.bin>


More information about the llvm-commits mailing list