diff options
| author | Dan Gohman <gohman@apple.com> | 2008-01-30 00:15:11 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2008-01-30 00:15:11 +0000 |
| commit | 47a7d6fafec81534ac060ef4be0f51e5dc892460 (patch) | |
| tree | b3117f4842098b1799268f876afc8a754b56c0ed /llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp | |
| parent | 162bb8060ec859324aca53d9cd0fab85812597bd (diff) | |
| download | bcm5719-llvm-47a7d6fafec81534ac060ef4be0f51e5dc892460.tar.gz bcm5719-llvm-47a7d6fafec81534ac060ef4be0f51e5dc892460.zip | |
Factor the addressing mode and the load/store VT out of LoadSDNode
and StoreSDNode into their common base class LSBaseSDNode. Member
functions getLoadedVT and getStoredVT are replaced with the common
getMemoryVT to simplify code that will handle both loads and stores.
llvm-svn: 46538
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp index df1d9b5d25b..09fef251964 100644 --- a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp @@ -921,7 +921,7 @@ SDNode *PPCDAGToDAGISel::Select(SDOperand Op) { case ISD::LOAD: { // Handle preincrement loads. LoadSDNode *LD = cast<LoadSDNode>(Op); - MVT::ValueType LoadedVT = LD->getLoadedVT(); + MVT::ValueType LoadedVT = LD->getMemoryVT(); // Normal loads are handled by code generated from the .td file. if (LD->getAddressingMode() != ISD::PRE_INC) |

