diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2005-06-29 15:57:19 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2005-06-29 15:57:19 +0000 |
commit | 782ad62f334c732143047950dff4a1692538735d (patch) | |
tree | dd4442ab903f98f4e2827fecb67a4ec8732c1894 /lib/Target/Alpha/AlphaISelPattern.cpp | |
parent | 1d231ec0b04268d40fe9903f6d0b0ae90a500150 (diff) |
tracking the instructions causing loads and stores provides more information than just the pointer being loaded or stored
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22311 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaISelPattern.cpp')
-rw-r--r-- | lib/Target/Alpha/AlphaISelPattern.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Target/Alpha/AlphaISelPattern.cpp b/lib/Target/Alpha/AlphaISelPattern.cpp index 6cba016e68..bab3c6eed9 100644 --- a/lib/Target/Alpha/AlphaISelPattern.cpp +++ b/lib/Target/Alpha/AlphaISelPattern.cpp @@ -607,16 +607,15 @@ void AlphaISel::EmitFunctionEntryCode(Function &Fn, MachineFunction &MF) { //Find the offset of the arg in it's parent's function static int getValueOffset(const Value* v) { - static int uniqneg = -1; if (v == NULL) - return uniqneg--; + return 0; const Instruction* itarget = dyn_cast<Instruction>(v); const BasicBlock* btarget = itarget->getParent(); const Function* ftarget = btarget->getParent(); //offset due to earlier BBs - int i = 0; + int i = 1; for(Function::const_iterator ii = ftarget->begin(); &*ii != btarget; ++ii) i += ii->size(); @@ -1299,7 +1298,7 @@ unsigned AlphaISel::SelectExpr(SDOperand N) { has_sym = true; if (EnableAlphaLSMark) - BuildMI(BB, Alpha::MEMLABEL, 3).addImm(0).addImm(0).addImm(getUID()); + BuildMI(BB, Alpha::MEMLABEL, 3).addImm(0).addImm(1).addImm(getUID()); BuildMI(BB, Alpha::LDQl, 2, Result) .addGlobalAddress(cast<GlobalAddressSDNode>(N)->getGlobal()) |