This is an archive of the discontinued LLVM Phabricator instance.

[GuardWidening] Re-factor freezeAndPush
ClosedPublic

Authored by skatkov on Apr 3 2023, 8:56 AM.

Details

Summary

Re-write the code to avoid iteration over users of
constants and global values.

Diff Detail

Event Timeline

skatkov created this revision.Apr 3 2023, 8:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 3 2023, 8:56 AM
skatkov requested review of this revision.Apr 3 2023, 8:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 3 2023, 8:56 AM
mkazantsev accepted this revision.Apr 5 2023, 11:42 PM
mkazantsev added inline comments.
llvm/lib/Transforms/Scalar/GuardWidening.cpp
610

if (!isa<Constant> && !isa<GlobalValue>)? Easier to understand (maybe it's just me :) )

This revision is now accepted and ready to land.Apr 5 2023, 11:42 PM
This revision was landed with ongoing or failed builds.Apr 6 2023, 2:47 AM
This revision was automatically updated to reflect the committed changes.