[llvm] r227539 - Remove unused argument.
Eric Christopher
echristo at gmail.com
Thu Jan 29 17:41:02 PST 2015
Author: echristo
Date: Thu Jan 29 19:41:01 2015
New Revision: 227539
URL: http://llvm.org/viewvc/llvm-project?rev=227539&view=rev
Log:
Remove unused argument.
Modified:
llvm/trunk/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
Modified: llvm/trunk/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp?rev=227539&r1=227538&r2=227539&view=diff
==============================================================================
--- llvm/trunk/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp Thu Jan 29 19:41:01 2015
@@ -529,8 +529,7 @@ SDNode *NVPTXDAGToDAGISel::SelectIntrins
}
}
-static unsigned int getCodeAddrSpace(MemSDNode *N,
- const NVPTXSubtarget *Subtarget) {
+static unsigned int getCodeAddrSpace(MemSDNode *N) {
const Value *Src = N->getMemOperand()->getValue();
if (!Src)
@@ -642,7 +641,7 @@ SDNode *NVPTXDAGToDAGISel::SelectLoad(SD
return nullptr;
// Address Space Setting
- unsigned int codeAddrSpace = getCodeAddrSpace(LD, Subtarget);
+ unsigned int codeAddrSpace = getCodeAddrSpace(LD);
// Volatile Setting
// - .volatile is only availalble for .global and .shared
@@ -878,7 +877,7 @@ SDNode *NVPTXDAGToDAGISel::SelectLoadVec
return nullptr;
// Address Space Setting
- unsigned int CodeAddrSpace = getCodeAddrSpace(MemSD, Subtarget);
+ unsigned int CodeAddrSpace = getCodeAddrSpace(MemSD);
// Volatile Setting
// - .volatile is only availalble for .global and .shared
@@ -2017,7 +2016,7 @@ SDNode *NVPTXDAGToDAGISel::SelectStore(S
return nullptr;
// Address Space Setting
- unsigned int codeAddrSpace = getCodeAddrSpace(ST, Subtarget);
+ unsigned int codeAddrSpace = getCodeAddrSpace(ST);
// Volatile Setting
// - .volatile is only availalble for .global and .shared
@@ -2245,7 +2244,7 @@ SDNode *NVPTXDAGToDAGISel::SelectStoreVe
EVT StoreVT = MemSD->getMemoryVT();
// Address Space Setting
- unsigned CodeAddrSpace = getCodeAddrSpace(MemSD, Subtarget);
+ unsigned CodeAddrSpace = getCodeAddrSpace(MemSD);
if (CodeAddrSpace == NVPTX::PTXLdStInstCode::CONSTANT) {
report_fatal_error("Cannot store to pointer that points to constant "
More information about the llvm-commits
mailing list