This is an archive of the discontinued LLVM Phabricator instance.

[NewGVN] Use leader for instrinsics with the returned attribute
AbandonedPublic

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

Details

Summary

Intrinsics with the returned attribute are copies of arguments, but those arguments might be equivalent to something. We this patch we now use lookupOperandLeader to try and find a leader for the returned value.

Diff Detail

Event Timeline

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

A test case will be helpful.

ManuelJBrito abandoned this revision.Aug 8 2023, 1:57 AM

This patch isn't really useful, the value will be moved to the correct congruence class regardless. Sorry for wasting your time.