summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineVerifier.cpp
diff options
context:
space:
mode:
authorCameron Zwarich <zwarich@apple.com>2010-12-19 23:50:53 +0000
committerCameron Zwarich <zwarich@apple.com>2010-12-19 23:50:53 +0000
commit0b111b1aee8852c140402d42bc7bb2fb51c833e8 (patch)
tree5b6f730c6183554e0d7ff880af5acbd1b0248c61 /llvm/lib/CodeGen/MachineVerifier.cpp
parent4fb9dd4c74f1131724b66169ddbe08fc8e03a94d (diff)
downloadbcm5719-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.cpp2
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';
OpenPOWER on IntegriCloud