This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Indicate that RISCVMergeBaseOffsetOpt preserves the CFG.
ClosedPublic

Authored by craig.topper on Aug 2 2021, 12:36 PM.

Details

Summary

Return false from runOnFunction if nothing changed. Curiously
we already returned a bool from detectAndFoldOffset, but didn't
use it.

Fix a couple breaks after returns that I saw while auditing
detectAndFoldOffset.

Diff Detail

Event Timeline

craig.topper created this revision.Aug 2 2021, 12:36 PM
craig.topper requested review of this revision.Aug 2 2021, 12:36 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 2 2021, 12:36 PM
Herald added a subscriber: MaskRay. · View Herald Transcript
asb accepted this revision.Aug 3 2021, 1:43 AM
This revision is now accepted and ready to land.Aug 3 2021, 1:43 AM