OSDN Git Service

SDAG: Implement Select instead of SelectImpl in NVPTXDAGToDAGISel
authorJustin Bogner <mail@justinbogner.com>
Fri, 13 May 2016 21:12:53 +0000 (21:12 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 13 May 2016 21:12:53 +0000 (21:12 +0000)
commitbc13a3d1875eff99b5e026a2725580f37cd92f0e
tree47c2b0b0464dba076b9c88dfd0cadb6195cf4d37
parentd273c95832ce72cf27225390670da1d917bb43ee
SDAG: Implement Select instead of SelectImpl in NVPTXDAGToDAGISel

- Where we were returning a node before, call ReplaceNode instead.
- Where we would return null to fall back to another selector, rename
  the method to try* and return a bool for success.

Part of llvm.org/pr26808.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269483 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
lib/Target/NVPTX/NVPTXISelDAGToDAG.h