[PATCH] D29937: [RISCV 15/n] Implement lowering of ISD::SELECT_CC

Alex Bradbury via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 14 05:47:30 PST 2017


asb created this revision.

There's nothing particular novel here, every backend without a conditional move has something similar to the custom inserter for `SELECT_CC`. Some backends try to use a mix of tablegen patterns and C++ code, for instance to deal with the condition code. I feel it's simpler when just handled in RISCVTargetLowering.


https://reviews.llvm.org/D29937

Files:
  lib/Target/RISCV/RISCVISelLowering.cpp
  lib/Target/RISCV/RISCVISelLowering.h
  lib/Target/RISCV/RISCVInstrInfo.td
  test/CodeGen/RISCV/select-cc.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29937.88360.patch
Type: text/x-patch
Size: 9302 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170214/78a826f8/attachment.bin>


More information about the llvm-commits mailing list