This is an archive of the discontinued LLVM Phabricator instance.

[BranchRelaxation] Fix test for duplicate branch instruction
ClosedPublic

Authored by gandhi21299 on Oct 14 2022, 10:59 AM.

Details

Summary

This patch is a follow up for D134557, inserting a check
for a duplicate unconditional branch to fall through.

Diff Detail

Event Timeline

gandhi21299 created this revision.Oct 14 2022, 10:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 14 2022, 10:59 AM
gandhi21299 requested review of this revision.Oct 14 2022, 10:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 14 2022, 10:59 AM
arsenm accepted this revision.Oct 14 2022, 11:18 AM
This revision is now accepted and ready to land.Oct 14 2022, 11:18 AM
This revision was landed with ongoing or failed builds.Oct 14 2022, 11:22 AM
This revision was automatically updated to reflect the committed changes.
foad added a subscriber: foad.Dec 14 2022, 4:18 AM
foad added inline comments.
llvm/test/CodeGen/AMDGPU/branch-relax-no-terminators.mir
100

This won't survive the next time someone regenerates the checks for this file.

gandhi21299 added inline comments.Dec 14 2022, 10:50 AM
llvm/test/CodeGen/AMDGPU/branch-relax-no-terminators.mir
100

Should I get rid of that specific line then?

foad added inline comments.Dec 14 2022, 11:09 PM
llvm/test/CodeGen/AMDGPU/branch-relax-no-terminators.mir
100

That already happened when I regenerated the checks for D140012. But it wasn't doing anything useful anyway because it was surrounded by CHECK-NEXT lines which would have failed if an extra S_BRANCH instruction appeared.

There’s definitely something broken with block handling in update_mir_test_checks