diff options
author | Cameron Zwarich <zwarich@apple.com> | 2010-12-19 23:50:53 +0000 |
---|---|---|
committer | Cameron Zwarich <zwarich@apple.com> | 2010-12-19 23:50:53 +0000 |
commit | 1b031ddedec2901ef01f103512b1d79f63a1bb85 (patch) | |
tree | 42a7e8c316b9324e95e88f217840536a425634b5 /lib/CodeGen/MachineVerifier.cpp | |
parent | f2a97ed13d8aa23fab6d141b3c633e6ae513233e (diff) |
Early clobber operands are allowed to be defined at use indices. This fixes one
half of PR8813.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122205 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineVerifier.cpp')
-rw-r--r-- | lib/CodeGen/MachineVerifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineVerifier.cpp b/lib/CodeGen/MachineVerifier.cpp index 2b1c7263b7..f7713fd1ee 100644 --- a/lib/CodeGen/MachineVerifier.cpp +++ b/lib/CodeGen/MachineVerifier.cpp @@ -690,7 +690,7 @@ MachineVerifier::visitMachineOperand(const MachineOperand *MO, unsigned MONum) { const LiveInterval &LI = LiveInts->getInterval(Reg); if (const VNInfo *VNI = LI.getVNInfoAt(DefIdx)) { assert(VNI && "NULL valno is not allowed"); - if (VNI->def != DefIdx) { + if (VNI->def != DefIdx && !MO->isEarlyClobber()) { report("Inconsistent valno->def", MO, MONum); *OS << "Valno " << VNI->id << " is not defined at " << DefIdx << " in " << LI << '\n'; |