summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2016-01-20 21:48:24 +0000
committerTom Stellard <thomas.stellard@amd.com>2016-01-20 21:48:24 +0000
commitd1efda8e9ed4077cde7487de78bfc70a27beac04 (patch)
treefeee867d80e902af5089366bd75431fb754f8d52 /llvm/lib/Target/AMDGPU/SIISelLowering.cpp
parent7836f895fe20f5023d55d4fea3d152ee7971a910 (diff)
downloadbcm5719-llvm-d1efda8e9ed4077cde7487de78bfc70a27beac04.tar.gz
bcm5719-llvm-d1efda8e9ed4077cde7487de78bfc70a27beac04.zip
AMDGPU/SI: Promote i1 SETCC operations
Summary: While working on uniform branching, I've hit a few cases where we emit i1 SETCC operations. Reviewers: arsenm Subscribers: arsenm, llvm-commits Differential Revision: http://reviews.llvm.org/D16233 llvm-svn: 258352
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIISelLowering.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/SIISelLowering.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
index eb417e5b15b..104b909c4e8 100644
--- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -103,6 +103,7 @@ SITargetLowering::SITargetLowering(TargetMachine &TM,
setOperationAction(ISD::SELECT_CC, MVT::i64, Expand);
setOperationAction(ISD::SELECT_CC, MVT::f64, Expand);
+ setOperationAction(ISD::SETCC, MVT::i1, Promote);
setOperationAction(ISD::SETCC, MVT::v2i1, Expand);
setOperationAction(ISD::SETCC, MVT::v4i1, Expand);
OpenPOWER on IntegriCloud