AArch64: Don't lower ISD::SELECT to ISD::SELECT_CC
authorMatthias Braun <matze@braunis.de>
Tue, 7 Apr 2015 17:33:05 +0000 (17:33 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 7 Apr 2015 17:33:05 +0000 (17:33 +0000)
commit0d8314f6f36bf855820e1c7a816ddf75c5fa997d
tree8bfb3d6bceea1c7f6457985635df9e707192f79e
parent5351b6d75e711fe2be3a26fb09ecaa4786cad2d3
AArch64: Don't lower ISD::SELECT to ISD::SELECT_CC

Instead of lowering SELECT to SELECT_CC which is further lowered later
immediately call the SELECT_CC lowering code. This is preferable
because:
- Avoids an unnecessary roundtrip through the legalization queues with
  an intermediate node.
- More importantly: Lowered operations get visited last leading to SELECT_CC
  getting visited with legalized operands and unlegalized ones for preexisting
  SELECT_CC nodes. This does not hurt the current code (hence no testcase) but
  is required for another patch I am working on.

Differential Revision: http://reviews.llvm.org/D8187

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