On 11-11-01 15:34 , Xinliang David Li wrote:
Right before pass_expand? In init_optimization_passes(), look for NEXT_PASS
(pass_expand). That's RTL generation. Somewhere before that.
Why?
The idea was to experiment where to best place ASAN to avoid
instrumenting too much. If we schedule it really late, then we may save
ourselves some unnecessary instrumentation.
Though, I still think ASAN should never open code the library calls
directly. Rather, it should emit straight-code gimple that can be
better understood and optimized away.
TARGET_MEM_REFs are converted to RTL mems during RTL expansion.
What? they will still be seen by asan which can not be handled (e.g,
creating address expression out of it).
So, it needs to run before TMRs are introduced then. *shrug*.