This is an archive of the discontinued LLVM Phabricator instance.

[Local] Mark Instruction argument of wouldInstructionBeTriviallyDead as const. NFC.
ClosedPublic

Authored by skatkov on Aug 13 2023, 10:50 PM.

Details

Summary

wouldInstructionBeTriviallyDead is not expected to modify instruction,
so mark argument as const to allow its usage in other non-modifying instructions callers.

Diff Detail

Event Timeline

skatkov created this revision.Aug 13 2023, 10:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 13 2023, 10:50 PM
skatkov requested review of this revision.Aug 13 2023, 10:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 13 2023, 10:50 PM
Herald added a subscriber: wdng. · View Herald Transcript
jdoerfert accepted this revision.Aug 14 2023, 12:27 AM
This revision is now accepted and ready to land.Aug 14 2023, 12:27 AM