This is an archive of the discontinued LLVM Phabricator instance.

llvm-reduce: Clone properties of blocks
ClosedPublic

Authored by arsenm on Apr 14 2022, 11:01 AM.

Details

Summary

getSuccProbability was private for some reason, saying to go through
MachineBranchProbabilityInfo. There doesn't seem to be much point to
that, as that wrapper directly calls this.

Like other areas, some of these fields aren't handled by the MIR
printer/parser so aren't tested.

Diff Detail

Event Timeline

arsenm created this revision.Apr 14 2022, 11:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 14 2022, 11:01 AM
arsenm requested review of this revision.Apr 14 2022, 11:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 14 2022, 11:01 AM
Herald added a subscriber: wdng. · View Herald Transcript
aeubanks added inline comments.Apr 14 2022, 11:03 AM
llvm/include/llvm/CodeGen/MachineBasicBlock.h
1089–1090

this should be updated, it contradicts the change description

arsenm added inline comments.Apr 14 2022, 11:05 AM
llvm/include/llvm/CodeGen/MachineBasicBlock.h
1089–1090

I'm not sure if the comment should be removed or not. I'm removing the language enforcement mechanism. Not sure if the original justification for this comment makes sense or not

aeubanks accepted this revision.Apr 18 2022, 1:44 PM

not super familiar with this code, but seems reasonable

This revision is now accepted and ready to land.Apr 18 2022, 1:44 PM