HomePhabricator

[mips] Support SELECT nodes for targets that don't have conditional-move…
Audit RequiredrL224124

Description

[mips] Support SELECT nodes for targets that don't have conditional-move instructions.

Summary:
For Mips targets that do not have conditional-move instructions, ie. targets
before MIPS32 and MIPS-IV, we have to insert a diamond control-flow
pattern in order to support SELECT nodes. In order to do that, we add
pseudo-instructions with a custom inserter that emits the necessary
control-flow that selects the correct value.

With this patch we add complete support for code generation of Mips-II targets
based on the LLVM test-suite.

Reviewers: dsanders

Reviewed By: dsanders

Subscribers: llvm-commits

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

Details

Auditors
dsanders
Committed
vkalintirisDec 12 2014, 6:41 AM
Reviewer
dsanders
Differential Revision
D6212: [mips] Support SELECT nodes for targets that don't have conditional-move instructions.
Parents
rL224123: Disable --icf=safe to avoid a bug.
Branches
Unknown
Tags
Unknown