This is an archive of the discontinued LLVM Phabricator instance.

[DAG] BaseIndexOffset: FrameIndexSDNodes with the same FrameIndex compare equal.
ClosedPublic

Authored by courbet on Feb 4 2019, 8:31 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

courbet created this revision.Feb 4 2019, 8:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 4 2019, 8:31 AM
Herald added a subscriber: arphaman. · View Herald Transcript
niravd accepted this revision.Feb 4 2019, 8:48 AM

LGTM. Nice catch.

This revision is now accepted and ready to land.Feb 4 2019, 8:48 AM
niravd requested changes to this revision.Feb 4 2019, 9:39 AM

Do we have a case where this changes things? because it looks like it should be already handled by the trivial Base == Other.Base check.

This revision now requires changes to proceed.Feb 4 2019, 9:39 AM

Do we have a case where this changes things? because it looks like it should be already handled by the trivial Base == Other.Base check.

It does allow the comparison between FrameIndexSDNodes with the same FrameIndex, one being a TargetFrameIndex and the other one being a FrameIndex, which are essentially the same thing as far as BaseIndexOffset is concerned AFAICT (only the type of produced value differs).

niravd accepted this revision.Feb 4 2019, 12:50 PM

I'm pretty sure they must be equivalent. I'm not sure if we can generate such a pattern, but the possiblity seems justification enough. Thanks.

This revision is now accepted and ready to land.Feb 4 2019, 12:50 PM

Thanks for the review !

This revision was automatically updated to reflect the committed changes.