aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autoconf/configure.ac14
-rw-r--r--lib/CodeGen/VirtRegMap.cpp4
2 files changed, 9 insertions, 9 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index e919ba81a4..2a7516a830 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -304,20 +304,20 @@ if test ${enableval} = "no"
then
if test -d /home/vadve/shared/benchmarks/speccpu2000/benchspec
then
- AC_SUBST(SPEC_ROOT,[/home/vadve/shared/benchmarks/speccpu2000/benchspec])
- AC_SUBST(USE_SPEC,[[USE_SPEC=1]])
+ AC_SUBST(SPEC2000_ROOT,[/home/vadve/shared/benchmarks/speccpu2000/benchspec])
+ AC_SUBST(USE_SPEC2000,[[USE_SPEC2000=1]])
else
- AC_SUBST(USE_SPEC,[[]])
- AC_SUBST(SPEC_ROOT,[])
+ AC_SUBST(USE_SPEC2000,[[]])
+ AC_SUBST(SPEC2000_ROOT,[])
fi
else
if test ${enableval} = ""
then
- AC_SUBST(SPEC_ROOT,[/home/vadve/shared/benchmarks/speccpu2000/benchspec])
+ AC_SUBST(SPEC2000_ROOT,[/home/vadve/shared/benchmarks/speccpu2000/benchspec])
else
- AC_SUBST(SPEC_ROOT,[${enableval}])
+ AC_SUBST(SPEC2000_ROOT,[${enableval}])
fi
- AC_SUBST(USE_SPEC,[[USE_SPEC=1]])
+ AC_SUBST(USE_SPEC2000,[[USE_SPEC2000=1]])
fi
dnl Spec 95 Benchmarks
diff --git a/lib/CodeGen/VirtRegMap.cpp b/lib/CodeGen/VirtRegMap.cpp
index 4f06c6730f..e8225e2b19 100644
--- a/lib/CodeGen/VirtRegMap.cpp
+++ b/lib/CodeGen/VirtRegMap.cpp
@@ -168,7 +168,7 @@ namespace {
// rewrite all used operands
for (unsigned i = 0, e = mii->getNumOperands(); i != e; ++i) {
MachineOperand& op = mii->getOperand(i);
- if (op.isRegister() && op.isUse() &&
+ if (op.isRegister() && op.getReg() && op.isUse() &&
MRegisterInfo::isVirtualRegister(op.getReg())) {
unsigned physReg = vrm_.getPhys(op.getReg());
handleUse(mbb, mii, op.getReg(), physReg);
@@ -187,7 +187,7 @@ namespace {
// uses so don't check for those here)
for (unsigned i = 0, e = mii->getNumOperands(); i != e; ++i) {
MachineOperand& op = mii->getOperand(i);
- if (op.isRegister() && !op.isUse())
+ if (op.isRegister() && op.getReg() && !op.isUse())
if (MRegisterInfo::isPhysicalRegister(op.getReg()))
vacatePhysReg(mbb, mii, op.getReg());
else {