Skip to content

Commit

Permalink
measure constant_propagation::Transform::has_problematic_return
Browse files Browse the repository at this point in the history
Summary: This is a behavior-preserving change.

Reviewed By: beicy

Differential Revision: D51222079

fbshipit-source-id: a6fff52d9a3b8a548a83e356b6af90b2faa6b213
  • Loading branch information
Nikolai Tillmann authored and facebook-github-bot committed Nov 21, 2023
1 parent 2990b6a commit fd1eecc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions service/constant-propagation/ConstantPropagationTransform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,10 @@ bool Transform::has_problematic_return(cfg::ControlFlowGraph& cfg,
DexType* declaring_type,
DexProto* proto,
const XStoreRefs* xstores) {
static AccumulatingTimer s_timer(
"constant_propagation::Transform::has_problematic_return");
auto t = s_timer.scope();

// Nothing to check without method information
if (!declaring_type || !proto) {
return false;
Expand Down

0 comments on commit fd1eecc

Please sign in to comment.