This is an archive of the discontinued LLVM Phabricator instance.

[CodeGen] Add "const" to MachineInstr::mayAlias
ClosedPublic

Authored by bjope on Apr 18 2019, 1:15 AM.

Details

Summary

The basic idea here is to make it possible to use
MachineInstr::mayAlias also when the MachineInstr
is const (or the "Other" MachineInstr is const).

The addition of const in MachineInstr::mayAlias
then rippled down to the need for adding const
in several other places, such as
TargetTransformInfo::getMemOperandWithOffset.

Event Timeline

bjope created this revision.Apr 18 2019, 1:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 18 2019, 1:15 AM
hfinkel accepted this revision.Apr 18 2019, 11:24 AM
hfinkel added a subscriber: hfinkel.

LGTM

This revision is now accepted and ready to land.Apr 18 2019, 11:24 AM
This revision was automatically updated to reflect the committed changes.