This is an archive of the discontinued LLVM Phabricator instance.

[JumpThreading] Insert freeze when unfolding select
ClosedPublic

Authored by nikic on May 18 2022, 3:14 AM.

Details

Summary

JumpThreading may convert selects into branch instructions, in which case the condition needs to be frozen (as branch on poison is immediate undefined behavior, unlike select on poison).

The necessary code for this is already in place, this just enables the option.

Diff Detail

Event Timeline

nikic created this revision.May 18 2022, 3:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2022, 3:14 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
nikic requested review of this revision.May 18 2022, 3:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 18 2022, 3:14 AM
aqjune accepted this revision.May 18 2022, 4:58 PM

LGTM

This revision is now accepted and ready to land.May 18 2022, 4:58 PM
This revision was landed with ongoing or failed builds.May 21 2022, 2:24 AM
This revision was automatically updated to reflect the committed changes.