[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaISelLowering.cpp

Evan Cheng evan.cheng at apple.com
Tue Oct 3 17:54:39 PDT 2006



Changes in directory llvm/lib/Target/Alpha:

AlphaISelLowering.cpp updated: 1.62 -> 1.63
---
Log message:

Combine ISD::EXTLOAD, ISD::SEXTLOAD, ISD::ZEXTLOAD into ISD::LOADX. Add an
extra operand to LOADX to specify the exact value extension type.


---
Diffs of the changes:  (+10 -10)

 AlphaISelLowering.cpp |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)


Index: llvm/lib/Target/Alpha/AlphaISelLowering.cpp
diff -u llvm/lib/Target/Alpha/AlphaISelLowering.cpp:1.62 llvm/lib/Target/Alpha/AlphaISelLowering.cpp:1.63
--- llvm/lib/Target/Alpha/AlphaISelLowering.cpp:1.62	Sun Sep 24 14:46:56 2006
+++ llvm/lib/Target/Alpha/AlphaISelLowering.cpp	Tue Oct  3 19:54:25 2006
@@ -48,19 +48,19 @@
   addRegisterClass(MVT::f64, Alpha::F8RCRegisterClass);
   addRegisterClass(MVT::f32, Alpha::F4RCRegisterClass);
   
-  //  setOperationAction(ISD::BRIND,        MVT::i64,   Expand);
-  setOperationAction(ISD::BR_CC,        MVT::Other, Expand);
-  setOperationAction(ISD::SELECT_CC,    MVT::Other, Expand);
+  setLoadXAction(ISD::EXTLOAD, MVT::i1,  Promote);
+  setLoadXAction(ISD::EXTLOAD, MVT::f32, Expand);
   
-  setOperationAction(ISD::EXTLOAD, MVT::i1,  Promote);
-  setOperationAction(ISD::EXTLOAD, MVT::f32, Expand);
+  setLoadXAction(ISD::ZEXTLOAD, MVT::i1,  Promote);
+  setLoadXAction(ISD::ZEXTLOAD, MVT::i32, Expand);
   
-  setOperationAction(ISD::ZEXTLOAD, MVT::i1,  Promote);
-  setOperationAction(ISD::ZEXTLOAD, MVT::i32, Expand);
+  setLoadXAction(ISD::SEXTLOAD, MVT::i1,  Promote);
+  setLoadXAction(ISD::SEXTLOAD, MVT::i8,  Expand);
+  setLoadXAction(ISD::SEXTLOAD, MVT::i16, Expand);
   
-  setOperationAction(ISD::SEXTLOAD, MVT::i1,  Promote);
-  setOperationAction(ISD::SEXTLOAD, MVT::i8,  Expand);
-  setOperationAction(ISD::SEXTLOAD, MVT::i16, Expand);
+  //  setOperationAction(ISD::BRIND,        MVT::i64,   Expand);
+  setOperationAction(ISD::BR_CC,        MVT::Other, Expand);
+  setOperationAction(ISD::SELECT_CC,    MVT::Other, Expand);
   
   setOperationAction(ISD::TRUNCSTORE, MVT::i1, Promote);
 






More information about the llvm-commits mailing list