OSDN Git Service

SDAG: Implement Select instead of SelectImpl in AArch64DAGToDAGISel
authorJustin Bogner <mail@justinbogner.com>
Thu, 12 May 2016 23:10:30 +0000 (23:10 +0000)
committerJustin Bogner <mail@justinbogner.com>
Thu, 12 May 2016 23:10:30 +0000 (23:10 +0000)
commit867b1dadfcf4c50092a279a35b0f196328779374
tree27f86538af40465508ca515b8c4ef2fad7a99495
parent41502c50b85d2c15b0c5974cdb9974437564e675
SDAG: Implement Select instead of SelectImpl in AArch64DAGToDAGISel

This one has a lot of code churn, but it's all mechanical and
straightforward.

- 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.
- Where we were calling SelectNodeTo, just return afterwards.

Part of llvm.org/pr26808.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269379 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp