Don't insert HDummyUses for control instructions

Review URL: https://codereview.chromium.org/11941013

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13421 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
jkummerow@chromium.org 2013-01-18 09:19:11 +00:00
parent e1e81a08db
commit 8a6221b1ed

View File

@ -1303,6 +1303,12 @@ void HGraph::NullifyUnreachableInstructions() {
}
continue;
}
if (operand->IsControlInstruction()) {
// Inserting a dummy use for a value that's not defined anywhere
// will fail. Some instructions define fake inputs on such
// values as control flow dependencies.
continue;
}
HDummyUse* dummy = new(zone()) HDummyUse(operand);
dummy->InsertBefore(instr);
last_dummy = dummy;