This is an archive of the discontinued LLVM Phabricator instance.

[SimplifyCFG] Add option to not speculate blocks
ClosedPublic

Authored by aeubanks on Jun 20 2023, 6:24 PM.

Details

Summary

Required for phase ordering changes to not regress Rust code with D145265.

Diff Detail

Event Timeline

aeubanks created this revision.Jun 20 2023, 6:24 PM
aeubanks requested review of this revision.Jun 20 2023, 6:24 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 20 2023, 6:24 PM
nikic added inline comments.Jun 21 2023, 1:33 AM
llvm/test/Transforms/SimplifyCFG/speculate-blocks.ll
80

This test can be much simpler. You don't really need more than if (c) { v = inst } phi(v, 0) to test this.

aeubanks updated this revision to Diff 533269.Jun 21 2023, 8:18 AM

simplify test

nikic accepted this revision.Jun 22 2023, 2:15 AM

LGTM

This revision is now accepted and ready to land.Jun 22 2023, 2:15 AM
This revision was automatically updated to reflect the committed changes.

this patch doesn't actually change any behavior in any of the pipelines

this patch doesn't actually change any behavior in any of the pipelines

D153468 maybe

this patch doesn't actually change any behavior in any of the pipelines

D153468 maybe

that's definitely a no-op even if you pass the flag that actually enables more verification

this patch doesn't actually change any behavior in any of the pipelines

D153468 maybe

that's definitely a no-op even if you pass the flag that actually enables more verification

Looks like it was unrelated flake which failed few times in a row. We will look how to improve that.
Sorry for the noise.