[project @ 2001-09-10 10:07:21 by rje]
authorrje <unknown>
Mon, 10 Sep 2001 10:07:21 +0000 (10:07 +0000)
committerrje <unknown>
Mon, 10 Sep 2001 10:07:21 +0000 (10:07 +0000)
commit8d367f60be010cf87be7effb939a2999d0c1fbc2
tree410edbcb9d240fd7f0a8d88851bf5c26804ea6b1
parentc51b55b80eb58319287ba54f10e1c0bf6d024fe4
[project @ 2001-09-10 10:07:21 by rje]
Fixed a bug in TICKY_TICKY profiling.

Previously, the TICK_ENT_DIRECT event was logged before the heap/stack
check was done. As a result, if the check failed, the TICK_ENT_DIRECT
event would be logged a second time, causing TICKY_TICKY to give innacurate
numbers.

This patch shouldn't have any affect on non-ticky compilation.

Also changed the modified bit of code to use "do" notation, and so look a bit
neater.
ghc/compiler/codeGen/CgClosure.lhs