This is an archive of the discontinued LLVM Phabricator instance.

[PGO][CHR] Small cleanup.
ClosedPublic

Authored by hjyamauchi on Sep 6 2018, 11:05 AM.

Details

Summary

Do away with demangling. It wasn't really necessary.
Declared some local functions to be static.

Diff Detail

Repository
rL LLVM

Event Timeline

hjyamauchi created this revision.Sep 6 2018, 11:05 AM
davidxl added inline comments.Sep 6 2018, 3:27 PM
lib/Transforms/Instrumentation/ControlHeightReduction.cpp
426 ↗(On Diff #164245)

Why this change? Is anonymous namespace not enough?

hjyamauchi added inline comments.Sep 7 2018, 9:54 AM
lib/Transforms/Instrumentation/ControlHeightReduction.cpp
426 ↗(On Diff #164245)

It may be ok, https://llvm.org/docs/CodingStandards.html#anonymous-namespaces seems to prefer a static function.

hjyamauchi added inline comments.Sep 7 2018, 9:59 AM
lib/Transforms/Instrumentation/ControlHeightReduction.cpp
426 ↗(On Diff #164245)

I meant to say "but" after "ok," before "https://llvm.org...." in the above comment.

davidxl accepted this revision.Sep 7 2018, 10:05 AM

lgtm

This revision is now accepted and ready to land.Sep 7 2018, 10:05 AM
This revision was automatically updated to reflect the committed changes.