This is an archive of the discontinued LLVM Phabricator instance.

[SimpleLoopUnswitch] Skip trivial selects when adding guards conditions to unswitch candidates
ClosedPublic

Authored by dmakogon on Nov 2 2022, 6:15 AM.

Details

Summary

We do this for conditional branches, but not for guards for some reason.

Fixes assertion crash in https://github.com/llvm/llvm-project/issues/58666.

Diff Detail

Event Timeline

dmakogon created this revision.Nov 2 2022, 6:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 2 2022, 6:15 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
dmakogon requested review of this revision.Nov 2 2022, 6:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 2 2022, 6:15 AM
dmakogon retitled this revision from [SimpleLoopUnswitch] Skip trivial selects when adding guards conditions as unswitch candidates to [SimpleLoopUnswitch] Skip trivial selects when adding guards conditions to unswitch candidates.Nov 3 2022, 3:32 AM
dmakogon edited the summary of this revision. (Show Details)Nov 3 2022, 3:47 AM
fhahn accepted this revision.Nov 3 2022, 12:12 PM

LGTM, thanks!

This revision is now accepted and ready to land.Nov 3 2022, 12:12 PM