This is an archive of the discontinued LLVM Phabricator instance.

[NewGVN] Unreachable if block in performSymbolicLoadEvaluation (NFC)
Needs ReviewPublic

Authored by ManuelJBrito on Aug 7 2023, 2:29 AM.

Details

Summary

When performing symbolic load evaluation we currently check if the defining instruction is unreachable. AFAICT this is not possible because the defining access is a clobber of the load, therefore the defining instruction dominates the load. In NewGVN if we are processing an instruction its because we have deemed it reachable so it's not possible to have an unreachable dominator.

Diff Detail

Unit TestsFailed

Event Timeline

ManuelJBrito created this revision.Aug 7 2023, 2:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 7 2023, 2:29 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
ManuelJBrito requested review of this revision.Aug 7 2023, 2:29 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 7 2023, 2:29 AM

Can you replace this with an assert instead?

Add assert, as per Alina's request.