diff options
| author | Nadav Rotem <nrotem@apple.com> | 2012-09-02 12:10:19 +0000 |
|---|---|---|
| committer | Nadav Rotem <nrotem@apple.com> | 2012-09-02 12:10:19 +0000 |
| commit | 9d832026206d89fe70ecabec281db8f6699dbebc (patch) | |
| tree | ae5f852032987dbdfd3787dea719c05513ba76d6 /llvm/lib/Target/ARM/ARMISelLowering.h | |
| parent | 49dd68ae7cfa1ad3e95c9552c6cabc85fe927bb3 (diff) | |
| download | bcm5719-llvm-9d832026206d89fe70ecabec281db8f6699dbebc.tar.gz bcm5719-llvm-9d832026206d89fe70ecabec281db8f6699dbebc.zip | |
Not all targets have efficient ISel code generation for select instructions.
For example, the ARM target does not have efficient ISel handling for vector
selects with scalar conditions. This patch adds a TLI hook which allows the
different targets to report which selects are supported well and which selects
should be converted to CF duting codegen prepare.
llvm-svn: 163093
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelLowering.h')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMISelLowering.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.h b/llvm/lib/Target/ARM/ARMISelLowering.h index 13b83de85d3..757c68ee370 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.h +++ b/llvm/lib/Target/ARM/ARMISelLowering.h @@ -257,6 +257,11 @@ namespace llvm { virtual const char *getTargetNodeName(unsigned Opcode) const; + virtual bool isSelectSupported(SelectSupportKind Kind) const { + // ARM does not support scalar condition selects on vectors. + return (Kind != ScalarCondVectorVal); + } + /// getSetCCResultType - Return the value type to use for ISD::SETCC. virtual EVT getSetCCResultType(EVT VT) const; |

