This is an archive of the discontinued LLVM Phabricator instance.

[CodeGen] Fix forward scan in MachineBasicBlock::computeRegisterLiveness.
ClosedPublic

Authored by efriedma on Nov 13 2018, 12:54 PM.

Details

Summary

The scan was incorrectly skipping the first instruction, so a register could appear to be dead when it was actually live. This eventually leads to a machine verifier failure and miscompile in arm-ldst-opt.

Diff Detail

Repository
rL LLVM

Event Timeline

efriedma created this revision.Nov 13 2018, 12:54 PM
arsenm accepted this revision.Nov 13 2018, 1:19 PM

LGTM

This revision is now accepted and ready to land.Nov 13 2018, 1:19 PM
This revision was automatically updated to reflect the committed changes.