This is an archive of the discontinued LLVM Phabricator instance.

[SCCP] Force unknown branches to overdefined
AbandonedPublic

Authored by davide on Nov 8 2016, 4:37 PM.

Details

Reviewers
eli.friedman
Summary

See https://llvm.org/bugs/show_bug.cgi?id=30448 for the full discussion, and thanks to Eli helping finding the problem

Diff Detail

Event Timeline

davide updated this revision to Diff 77287.Nov 8 2016, 4:37 PM
davide retitled this revision from to [SCCP] Force unknown branches to overdefined.
davide updated this object.
davide added a reviewer: eli.friedman.
davide added a subscriber: llvm-commits.

This fixes the miscompile reported in PR30448. I tried on many internal tests and bootstrapping clang, and it works without problems. We lose some optimization power, but it seems that the pattern is rare enough so we shouldn't really worry.

davide abandoned this revision.Nov 9 2016, 12:43 PM