This is an archive of the discontinued LLVM Phabricator instance.

[CodeGenPrepare] Don't create dead instructions in addrmode sinking
ClosedPublic

Authored by efriedma on Jun 28 2017, 12:41 PM.

Details

Reviewers
arsenm
hfinkel
Summary

When we fail to sink an instruction, we must make sure not to modify the function; otherwise, we end up in an infinite loop because CodeGenPrepare iterates until it doesn't make any changes.

Fixes https://bugs.llvm.org/show_bug.cgi?id=33608 .

Diff Detail

Repository
rL LLVM

Event Timeline

efriedma created this revision.Jun 28 2017, 12:41 PM
arsenm accepted this revision.Jul 6 2017, 4:55 PM

LGTM

This revision is now accepted and ready to land.Jul 6 2017, 4:55 PM
efriedma closed this revision.Jul 12 2017, 4:31 PM

r307866.