summaryrefslogtreecommitdiff
path: root/lib/Target
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2014-02-04 17:18:43 +0000
committerTom Stellard <thomas.stellard@amd.com>2014-02-04 17:18:43 +0000
commit7d9ed1cac54f5ed4274ae2735bd06e1017a83a9b (patch)
treee6cdf82867f52b9a0d98152eaa56d9ef0cee3a5f /lib/Target
parent0c7a6b6477cac6192712b14016e706fd100172b1 (diff)
downloadllvm-7d9ed1cac54f5ed4274ae2735bd06e1017a83a9b.tar.gz
llvm-7d9ed1cac54f5ed4274ae2735bd06e1017a83a9b.tar.bz2
llvm-7d9ed1cac54f5ed4274ae2735bd06e1017a83a9b.tar.xz
R600/SI: Expand i1 BR_CC
This fixes a crashes in the OpenCV test suite and also the scrypt kernel in bfgminer. I was unable to come up with a reduced test case for this. https://bugs.freedesktop.org/show_bug.cgi?id=72785 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200776 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/R600/AMDGPUISelLowering.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/R600/AMDGPUISelLowering.cpp b/lib/Target/R600/AMDGPUISelLowering.cpp
index f97a53f0eb..47f88c3f0c 100644
--- a/lib/Target/R600/AMDGPUISelLowering.cpp
+++ b/lib/Target/R600/AMDGPUISelLowering.cpp
@@ -136,6 +136,8 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(TargetMachine &TM) :
setLoadExtAction(ISD::SEXTLOAD, MVT::v4i16, Expand);
setLoadExtAction(ISD::ZEXTLOAD, MVT::v4i16, Expand);
+ setOperationAction(ISD::BR_CC, MVT::i1, Expand);
+
setOperationAction(ISD::FNEG, MVT::v2f32, Expand);
setOperationAction(ISD::FNEG, MVT::v4f32, Expand);