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
parent e1e81a08
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment