This is an archive of the discontinued LLVM Phabricator instance.

# Enter a commit message. # # Changes: # # llvm/lib/Transforms/Scalar/GVN.cpp
Needs ReviewPublic

Authored by BK1603 on Aug 22 2019, 10:26 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

This commit attempts on fixing bug #20811 [https://bugs.llvm.org/show_bug.cgi?id=20811]

The commit changes the function AnalyzeLoadAvailability in the following manner:

Currently, the function considers a load after lifetime end to be a instruction clobbered dependency,
and returns false, without populating Res.

The commit makes the function return true if a load is performed after the lifetime of a pointer has ended
and populates Res with undef (just as in the case of a load placed immediately after lifetime start.)

Event Timeline

BK1603 created this revision.Aug 22 2019, 10:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 22 2019, 10:26 AM
Herald added a subscriber: hiraditya. · View Herald Transcript