This is an archive of the discontinued LLVM Phabricator instance.

[ValueTracking] Fix crash in isGuaranteedNotToBeUndefOrPoison when V is in an unreachable block
ClosedPublic

Authored by aqjune on May 12 2020, 8:41 AM.

Details

Summary

This fixes PR45885 by fixing isGuaranteedNotToBeUndefOrPoison so it does not look into dominating
branch conditions of V when V is an instruction in an unreachable block.

Diff Detail

Event Timeline

aqjune created this revision.May 12 2020, 8:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 12 2020, 8:41 AM
nikic accepted this revision.May 12 2020, 11:54 AM

LG apart from the test issue.

llvm/test/Transforms/DivRemPairs/pr45885.ll
2 ↗(On Diff #263449)

This needs REQUIRES. It probably makes more sense to target x86 and put it in the X86 directory.

This revision is now accepted and ready to land.May 12 2020, 11:54 AM
aqjune marked 2 inline comments as done.May 12 2020, 6:18 PM
aqjune added inline comments.
llvm/test/Transforms/DivRemPairs/pr45885.ll
2 ↗(On Diff #263449)

Put it into PowerPC instead, as the input did not cause crash in X86

This revision was automatically updated to reflect the committed changes.
aqjune marked an inline comment as done.