[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaISelPattern.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Wed Jun 29 08:57:31 PDT 2005
Changes in directory llvm/lib/Target/Alpha:
AlphaISelPattern.cpp updated: 1.141 -> 1.142
---
Log message:
tracking the instructions causing loads and stores provides more information than just the pointer being loaded or stored
---
Diffs of the changes: (+3 -4)
AlphaISelPattern.cpp | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
Index: llvm/lib/Target/Alpha/AlphaISelPattern.cpp
diff -u llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.141 llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.142
--- llvm/lib/Target/Alpha/AlphaISelPattern.cpp:1.141 Wed Jun 29 08:35:05 2005
+++ llvm/lib/Target/Alpha/AlphaISelPattern.cpp Wed Jun 29 10:57:19 2005
@@ -607,16 +607,15 @@
//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 @@
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())
More information about the llvm-commits
mailing list