| Index: runtime/vm/intermediate_language_x64.cc
|
| diff --git a/runtime/vm/intermediate_language_x64.cc b/runtime/vm/intermediate_language_x64.cc
|
| index a0a07ae5a939e6fc659df8dd80de6d661e5a5f3b..ba50319b5fd7ef0b43a8d69e7c5603b7c255d4e0 100644
|
| --- a/runtime/vm/intermediate_language_x64.cc
|
| +++ b/runtime/vm/intermediate_language_x64.cc
|
| @@ -32,7 +32,7 @@ LocationSummary* Computation::MakeCallSummary() {
|
|
|
| void BindInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
|
| computation()->EmitNativeCode(compiler);
|
| - if (locs()->out().kind() == Location::kRegister) {
|
| + if (is_used() && locs()->out().kind() == Location::kRegister) {
|
| // TODO(vegorov): this should really happen only for comparisons fused
|
| // with branches. Currrently IR does not provide an easy way to remove
|
| // instructions from the graph so we just leave fused comparison in it
|
|
|