This is an archive of the discontinued LLVM Phabricator instance.

[SCCP] Add API for updating the state of the Solver.
AbandonedPublic

Authored by labrinea on Jun 29 2022, 7:35 AM.

Details

Summary
  • Notify users when replacing a value.
  • Invalidate a deleted instruction.

Discussion: https://discourse.llvm.org/t/rfc-should-we-enable-function-specialization/61518

Diff Detail

Event Timeline

labrinea created this revision.Jun 29 2022, 7:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2022, 7:35 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
labrinea requested review of this revision.Jun 29 2022, 7:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2022, 7:35 AM
labrinea updated this revision to Diff 443592.Jul 11 2022, 3:55 AM

When invalidating remove the predicate info from additional users of all instructions, not only CmpInst (the sanitizer found a use after free for a PHINode).

labrinea updated this revision to Diff 444531.Jul 13 2022, 11:40 PM

Changes from last revision:

  • allow removing lattice state of struct-typed values
  • maybe it possible to conditionally notify users when replacing a value
labrinea edited reviewers, added: efriedma; removed: eli.friedman.Aug 1 2022, 10:39 AM
labrinea edited the summary of this revision. (Show Details)Aug 15 2022, 1:44 AM
labrinea abandoned this revision.Dec 5 2022, 5:15 AM

Abandoning in favor of D126455.