Merge pull request #2473 from cfallin/fix-lowering

Fix lowering instruction-sinking (load-merging) bug.
This commit is contained in:
Chris Fallin
2020-12-03 15:56:50 -08:00
committed by GitHub
2 changed files with 16 additions and 0 deletions

View File

@@ -913,6 +913,7 @@ impl<'func, I: VCodeInst> Lower<'func, I> {
// the code-motion.
if self.cur_scan_entry_color.is_some()
&& self.value_uses[val] == 1
&& self.value_lowered_uses[val] == 0
&& self.num_outputs(src_inst) == 1
&& self
.side_effect_inst_entry_colors