To undrift the profile, we need to extract as many caller-callee pairs from the IR as we can to maximize the number of call sites in the profile we can undrift. Now, since MemProfUsePass runs after early inlining, some functions have been inlined, and we may no longer have bodies for those functions in the IR. To cope with this, this patch teaches extractCallsFromIR to extract caller-calee pairs from inline stacks. The output format of extractCallsFromIR remains the same. We still return a map from caller GUIDs to lists of corresponding call sites.
43 KiB
43 KiB