In DeadArgumentElimination, the call instructions will be replaced. We also need to set the prof weights so that function inlining can find the correct profile.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 4893 Build 4893: arc lint + arc unit
Event Timeline
lib/IR/Instruction.cpp | ||
---|---|---|
659 | It should not be needed, removed. |
Comment Actions
LGTM after you fix the test case.
lib/IR/Instruction.cpp | ||
---|---|---|
658 | Nit: "call and invoke instructions" | |
test/Transforms/DeadArgElim/call_profile.ll | ||
6 ↗ | (On Diff #92706) | Could you add the test case for the non va_arg case as well? There are two places in the code where a new instruction is created and you should check both the cases (or optionally refactor the code so that the new instruction creation and metadata copying is done in one helper function) |
Nit: "...call and invoke instructions"