[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp SelectionDAG.cpp SelectionDAGISel.cpp

2007-04-21 Thread Christopher Lamb


Changes in directory llvm/lib/CodeGen/SelectionDAG:

DAGCombiner.cpp updated: 1.293 - 1.294
SelectionDAG.cpp updated: 1.398 - 1.399
SelectionDAGISel.cpp updated: 1.421 - 1.422
---
Log message:


add support for alignment attributes on load/store instructions


---
Diffs of the changes:  (+79 -36)

 DAGCombiner.cpp  |   70 +--
 SelectionDAG.cpp |   33 +++-
 SelectionDAGISel.cpp |   12 +---
 3 files changed, 79 insertions(+), 36 deletions(-)


Index: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.293 
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.294
--- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.293 Tue Apr 17 22:06:49 2007
+++ llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp   Sat Apr 21 03:16:25 2007
@@ -1263,7 +1263,9 @@
 (!AfterLegalize || TLI.isLoadXLegal(ISD::ZEXTLOAD, EVT))) {
   SDOperand ExtLoad = DAG.getExtLoad(ISD::ZEXTLOAD, VT, LN0-getChain(),
  LN0-getBasePtr(), LN0-getSrcValue(),
- LN0-getSrcValueOffset(), EVT);
+ LN0-getSrcValueOffset(), EVT,
+ LN0-isVolatile(), 
+ LN0-getAlignment());
   AddToWorkList(N);
   CombineTo(N0.Val, ExtLoad, ExtLoad.getValue(1));
   return SDOperand(N, 0);   // Return N so it doesn't get rechecked!
@@ -1280,7 +1282,9 @@
 (!AfterLegalize || TLI.isLoadXLegal(ISD::ZEXTLOAD, EVT))) {
   SDOperand ExtLoad = DAG.getExtLoad(ISD::ZEXTLOAD, VT, LN0-getChain(),
  LN0-getBasePtr(), LN0-getSrcValue(),
- LN0-getSrcValueOffset(), EVT);
+ LN0-getSrcValueOffset(), EVT,
+ LN0-isVolatile(), 
+ LN0-getAlignment());
   AddToWorkList(N);
   CombineTo(N0.Val, ExtLoad, ExtLoad.getValue(1));
   return SDOperand(N, 0);   // Return N so it doesn't get rechecked!
@@ -1320,7 +1324,8 @@
 AddToWorkList(NewPtr.Val);
 SDOperand Load =
   DAG.getExtLoad(ISD::ZEXTLOAD, VT, LN0-getChain(), NewPtr,
- LN0-getSrcValue(), LN0-getSrcValueOffset(), EVT);
+ LN0-getSrcValue(), LN0-getSrcValueOffset(), EVT,
+ LN0-isVolatile(), LN0-getAlignment());
 AddToWorkList(N);
 CombineTo(N0.Val, Load, Load.getValue(1));
 return SDOperand(N, 0);   // Return N so it doesn't get rechecked!
@@ -2120,7 +2125,8 @@
 SDOperand ExtLoad = DAG.getExtLoad(ISD::SEXTLOAD, VT, LN0-getChain(),
LN0-getBasePtr(), LN0-getSrcValue(),
LN0-getSrcValueOffset(),
-   N0.getValueType());
+   N0.getValueType(), 
+   LN0-isVolatile());
 CombineTo(N, ExtLoad);
 CombineTo(N0.Val, DAG.getNode(ISD::TRUNCATE, N0.getValueType(), ExtLoad),
   ExtLoad.getValue(1));
@@ -2136,7 +2142,9 @@
 if (!AfterLegalize || TLI.isLoadXLegal(ISD::SEXTLOAD, EVT)) {
   SDOperand ExtLoad = DAG.getExtLoad(ISD::SEXTLOAD, VT, LN0-getChain(),
  LN0-getBasePtr(), LN0-getSrcValue(),
- LN0-getSrcValueOffset(), EVT);
+ LN0-getSrcValueOffset(), EVT,
+ LN0-isVolatile(), 
+ LN0-getAlignment());
   CombineTo(N, ExtLoad);
   CombineTo(N0.Val, DAG.getNode(ISD::TRUNCATE, N0.getValueType(), ExtLoad),
 ExtLoad.getValue(1));
@@ -2212,7 +2220,9 @@
 SDOperand ExtLoad = DAG.getExtLoad(ISD::ZEXTLOAD, VT, LN0-getChain(),
LN0-getBasePtr(), LN0-getSrcValue(),
LN0-getSrcValueOffset(),
-   N0.getValueType());
+   N0.getValueType(),
+   LN0-isVolatile(), 
+   LN0-getAlignment());
 CombineTo(N, ExtLoad);
 CombineTo(N0.Val, DAG.getNode(ISD::TRUNCATE, N0.getValueType(), ExtLoad),
   ExtLoad.getValue(1));
@@ -2227,7 +2237,9 @@
 MVT::ValueType EVT = LN0-getLoadedVT();
 SDOperand ExtLoad = DAG.getExtLoad(ISD::ZEXTLOAD, VT, LN0-getChain(),
LN0-getBasePtr(), LN0-getSrcValue(),
-   LN0-getSrcValueOffset(), EVT);
+   LN0-getSrcValueOffset(), EVT,
+   LN0-isVolatile(), 
+ 

[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp SelectionDAG.cpp SelectionDAGISel.cpp

2007-04-21 Thread Reid Spencer


Changes in directory llvm/lib/CodeGen/SelectionDAG:

DAGCombiner.cpp updated: 1.294 - 1.295
SelectionDAG.cpp updated: 1.399 - 1.400
SelectionDAGISel.cpp updated: 1.422 - 1.423
---
Log message:

Revert Christopher Lamb's load/store alignment changes. 


---
Diffs of the changes:  (+36 -79)

 DAGCombiner.cpp  |   70 +--
 SelectionDAG.cpp |   33 
 SelectionDAGISel.cpp |   12 +++-
 3 files changed, 36 insertions(+), 79 deletions(-)


Index: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.294 
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.295
--- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1.294 Sat Apr 21 03:16:25 2007
+++ llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp   Sat Apr 21 13:36:27 2007
@@ -1263,9 +1263,7 @@
 (!AfterLegalize || TLI.isLoadXLegal(ISD::ZEXTLOAD, EVT))) {
   SDOperand ExtLoad = DAG.getExtLoad(ISD::ZEXTLOAD, VT, LN0-getChain(),
  LN0-getBasePtr(), LN0-getSrcValue(),
- LN0-getSrcValueOffset(), EVT,
- LN0-isVolatile(), 
- LN0-getAlignment());
+ LN0-getSrcValueOffset(), EVT);
   AddToWorkList(N);
   CombineTo(N0.Val, ExtLoad, ExtLoad.getValue(1));
   return SDOperand(N, 0);   // Return N so it doesn't get rechecked!
@@ -1282,9 +1280,7 @@
 (!AfterLegalize || TLI.isLoadXLegal(ISD::ZEXTLOAD, EVT))) {
   SDOperand ExtLoad = DAG.getExtLoad(ISD::ZEXTLOAD, VT, LN0-getChain(),
  LN0-getBasePtr(), LN0-getSrcValue(),
- LN0-getSrcValueOffset(), EVT,
- LN0-isVolatile(), 
- LN0-getAlignment());
+ LN0-getSrcValueOffset(), EVT);
   AddToWorkList(N);
   CombineTo(N0.Val, ExtLoad, ExtLoad.getValue(1));
   return SDOperand(N, 0);   // Return N so it doesn't get rechecked!
@@ -1324,8 +1320,7 @@
 AddToWorkList(NewPtr.Val);
 SDOperand Load =
   DAG.getExtLoad(ISD::ZEXTLOAD, VT, LN0-getChain(), NewPtr,
- LN0-getSrcValue(), LN0-getSrcValueOffset(), EVT,
- LN0-isVolatile(), LN0-getAlignment());
+ LN0-getSrcValue(), LN0-getSrcValueOffset(), EVT);
 AddToWorkList(N);
 CombineTo(N0.Val, Load, Load.getValue(1));
 return SDOperand(N, 0);   // Return N so it doesn't get rechecked!
@@ -2125,8 +2120,7 @@
 SDOperand ExtLoad = DAG.getExtLoad(ISD::SEXTLOAD, VT, LN0-getChain(),
LN0-getBasePtr(), LN0-getSrcValue(),
LN0-getSrcValueOffset(),
-   N0.getValueType(), 
-   LN0-isVolatile());
+   N0.getValueType());
 CombineTo(N, ExtLoad);
 CombineTo(N0.Val, DAG.getNode(ISD::TRUNCATE, N0.getValueType(), ExtLoad),
   ExtLoad.getValue(1));
@@ -2142,9 +2136,7 @@
 if (!AfterLegalize || TLI.isLoadXLegal(ISD::SEXTLOAD, EVT)) {
   SDOperand ExtLoad = DAG.getExtLoad(ISD::SEXTLOAD, VT, LN0-getChain(),
  LN0-getBasePtr(), LN0-getSrcValue(),
- LN0-getSrcValueOffset(), EVT,
- LN0-isVolatile(), 
- LN0-getAlignment());
+ LN0-getSrcValueOffset(), EVT);
   CombineTo(N, ExtLoad);
   CombineTo(N0.Val, DAG.getNode(ISD::TRUNCATE, N0.getValueType(), ExtLoad),
 ExtLoad.getValue(1));
@@ -2220,9 +2212,7 @@
 SDOperand ExtLoad = DAG.getExtLoad(ISD::ZEXTLOAD, VT, LN0-getChain(),
LN0-getBasePtr(), LN0-getSrcValue(),
LN0-getSrcValueOffset(),
-   N0.getValueType(),
-   LN0-isVolatile(), 
-   LN0-getAlignment());
+   N0.getValueType());
 CombineTo(N, ExtLoad);
 CombineTo(N0.Val, DAG.getNode(ISD::TRUNCATE, N0.getValueType(), ExtLoad),
   ExtLoad.getValue(1));
@@ -2237,9 +2227,7 @@
 MVT::ValueType EVT = LN0-getLoadedVT();
 SDOperand ExtLoad = DAG.getExtLoad(ISD::ZEXTLOAD, VT, LN0-getChain(),
LN0-getBasePtr(), LN0-getSrcValue(),
-   LN0-getSrcValueOffset(), EVT,
-   LN0-isVolatile(), 
-   LN0-getAlignment());
+