]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Fix dumping of call cost in tail recursion optimization
authorJosef Weidendorfer <Josef.Weidendorfer@gmx.de>
Tue, 11 Aug 2009 19:21:25 +0000 (19:21 +0000)
committerJosef Weidendorfer <Josef.Weidendorfer@gmx.de>
Tue, 11 Aug 2009 19:21:25 +0000 (19:21 +0000)
commit2cd5fcf5a74ea75164a377c38aae1cb19d16a42c
tree19227cb7e576be4d17bffe824b4dfb53be4745d6
parent6a68dfd48d0a75acf45d19a9d263ef298097d4e9
Fix dumping of call cost in tail recursion optimization

When tail recursion optimization is detected (i.e. a jump to the
beginning of the function without creating a new stack frame),
Callgrind collects this as real call (ie. calculates inclusive
call costs), but forgot to dump the call information (the call
type is still left as a jump).
Fixed by also dump call information if inclusive cost is >0.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10780
callgrind/dump.c