[llvm] r200776 - R600/SI: Expand i1 BR_CC

Tom Stellard thomas.stellard at amd.com
Tue Feb 4 09:18:43 PST 2014


Author: tstellar
Date: Tue Feb  4 11:18:43 2014
New Revision: 200776

URL: http://llvm.org/viewvc/llvm-project?rev=200776&view=rev
Log:
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

Modified:
    llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp

Modified: llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp?rev=200776&r1=200775&r2=200776&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp Tue Feb  4 11:18:43 2014
@@ -136,6 +136,8 @@ AMDGPUTargetLowering::AMDGPUTargetLoweri
   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);
 





More information about the llvm-commits mailing list