R600/SI: Expand i1 BR_CC
authorTom Stellard <thomas.stellard@amd.com>
Tue, 4 Feb 2014 17:18:43 +0000 (17:18 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 4 Feb 2014 17:18:43 +0000 (17:18 +0000)
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

lib/Target/R600/AMDGPUISelLowering.cpp

index f97a53f0eb16e5910616c0b2f624b5bea7b0588d..47f88c3f0c61703502fa92ba9243a9939b3fada4 100644 (file)
@@ -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);