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 | 0b111b1aee8852c140402d42bc7bb2fb51c833e8 (patch) | |
tree | 5b6f730c6183554e0d7ff880af5acbd1b0248c61 /llvm/lib/CodeGen/MachineVerifier.cpp | |
parent | 4fb9dd4c74f1131724b66169ddbe08fc8e03a94d (diff) | |
download | bcm5719-llvm-0b111b1aee8852c140402d42bc7bb2fb51c833e8.tar.gz bcm5719-llvm-0b111b1aee8852c140402d42bc7bb2fb51c833e8.zip |
Early clobber operands are allowed to be defined at use indices. This fixes one
half of PR8813.
llvm-svn: 122205
Diffstat (limited to 'llvm/lib/CodeGen/MachineVerifier.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineVerifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp index 2b1c7263b7b..f7713fd1eec 100644 --- a/llvm/lib/CodeGen/MachineVerifier.cpp +++ b/llvm/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'; |