This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Factor out guard utility methods into a separate file
ClosedPublic

Authored by mkazantsev on Aug 22 2018, 9:34 PM.

Details

Summary

This patch creates file GuardUtils which will contain logic for work with guards
that can be shared across different passes.

Diff Detail

Repository
rL LLVM

Event Timeline

mkazantsev created this revision.Aug 22 2018, 9:34 PM
fedor.sergeev accepted this revision.Aug 29 2018, 3:12 AM

LGTM, assuming that it is mostly the code movement.
I did not spend any effort to verify that code movement did not affect semantics :)

include/llvm/Transforms/Utils/GuardUtils.h
23 ↗(On Diff #162133)

remove "previous" here, it does not add anything and is a bit confusing.

This revision is now accepted and ready to land.Aug 29 2018, 3:12 AM
mkazantsev marked an inline comment as done.Aug 29 2018, 3:46 AM
This revision was automatically updated to reflect the committed changes.