|
From: John v. S. <jc...@cs...> - 2007-02-16 10:30:38
|
Hello, I just finished working on a tool to count direct/indirect jumps, direct/indirect calls, returns and conditional jumps in a program and I am using valgrind for it. To distinguish between direct and indirect jumps/calls I need to disable constant propagation by invoking > VG_(clo_vex_control).iropt_level = 0; But the problem is that I totally disable all other optimizations with it and thus the tool is terribly slow (about 10x slower than non instrumented execution). So I was wondering, is there a way to disable a specific kind of optimization or postpone the optimization until after the instrumentation? I could just let IRSB* cprop_BB ( IRSB* in ) return the input unmodified, but are other optimizations depending on this constant propagation? Thanks, -- John |