[llvm-dev] Lowering Select to Two Predicated Movs

Friedman, Eli via llvm-dev llvm-dev at lists.llvm.org
Fri Jul 7 11:20:17 PDT 2017

On 7/7/2017 11:12 AM, Dilan Manatunga via llvm-dev wrote:
> Hi,
> I was wondering what would be the best way to lower a select operation 
> two predicated movs. I looked through the ARM, MIPS, and NVPTX 
> backends and they all seem to lower a select to some sort of 
> conditional move or native select operation.

ARM lowers a select to a predicated mov.  MOVCCr is a pseudo-instruction 
which gets expanded after instruction selection.


Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

More information about the llvm-dev mailing list