[LLVMdev] what is the Line number of Phi Node with addr2line

Daniel Berlin dberlin at dberlin.org
Tue Apr 21 23:54:39 PDT 2015


On Tue, Apr 21, 2015 at 11:53 PM, Eric Lu <eirc.lew at gmail.com> wrote:
> Hey, Daniel
>
>   Is it better to instrument in the CodeGen phase ? I am now doing it in the
> opt phases, and it seems a little complex when instrument phi nodes, because
> I have to decide where the load operation should be if there are no phi
> nodes.


I still don't quite understand why this is hard.
If you are profiling loads/stores, why are you not insetring
instrumentation right before the load/store?



More information about the llvm-dev mailing list