[llvm] r288905 - [AVR] Expand 'SELECT_CC' nodes whereever possible

Dylan McKay via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 7 04:34:47 PST 2016


Author: dylanmckay
Date: Wed Dec  7 06:34:47 2016
New Revision: 288905

URL: http://llvm.org/viewvc/llvm-project?rev=288905&view=rev
Log:
[AVR] Expand 'SELECT_CC' nodes whereever possible

Modified:
    llvm/trunk/lib/Target/AVR/AVRISelLowering.cpp
    llvm/trunk/test/CodeGen/AVR/expand-integer-failure.ll

Modified: llvm/trunk/lib/Target/AVR/AVRISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AVR/AVRISelLowering.cpp?rev=288905&r1=288904&r2=288905&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AVR/AVRISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/AVR/AVRISelLowering.cpp Wed Dec  7 06:34:47 2016
@@ -84,8 +84,8 @@ AVRTargetLowering::AVRTargetLowering(AVR
 
   setOperationAction(ISD::SELECT_CC, MVT::i8, Custom);
   setOperationAction(ISD::SELECT_CC, MVT::i16, Custom);
-  setOperationAction(ISD::SELECT_CC, MVT::i32, Custom);
-  setOperationAction(ISD::SELECT_CC, MVT::i64, Custom);
+  setOperationAction(ISD::SELECT_CC, MVT::i32, Expand);
+  setOperationAction(ISD::SELECT_CC, MVT::i64, Expand);
   setOperationAction(ISD::SETCC, MVT::i8, Custom);
   setOperationAction(ISD::SETCC, MVT::i16, Custom);
   setOperationAction(ISD::SETCC, MVT::i32, Custom);

Modified: llvm/trunk/test/CodeGen/AVR/expand-integer-failure.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/AVR/expand-integer-failure.ll?rev=288905&r1=288904&r2=288905&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/AVR/expand-integer-failure.ll (original)
+++ llvm/trunk/test/CodeGen/AVR/expand-integer-failure.ll Wed Dec  7 06:34:47 2016
@@ -1,5 +1,4 @@
 ; RUN: llc < %s -march=avr | FileCheck %s
-; XFAIL: *
 
 ; Causes an assertion error
 ; Assertion failed: (Lo.getValueType() == TLI.getTypeToTransformTo(*DAG.getContext(), Op.getValueType()) &&
@@ -20,4 +19,3 @@ then:
 else:
   ret void
 }
-




More information about the llvm-commits mailing list