Fix incorrect loop condition in inline array allocation
authorJohan Tibell <johan.tibell@gmail.com>
Tue, 11 Mar 2014 12:54:29 +0000 (13:54 +0100)
committerJohan Tibell <johan.tibell@gmail.com>
Tue, 11 Mar 2014 19:01:54 +0000 (20:01 +0100)
commitc1d74ab96df7607529596d01223bc8654abf71b9
treef1442ce5bc9dfc0b3e9e92f2d5788292ce9b9d5a
parentb684f27ec7b3538ffd9401de70ef5685b8b71978
Fix incorrect loop condition in inline array allocation

Also make sure allocHeapClosure updates profiling counters with the
memory allocated.
compiler/codeGen/StgCmmHeap.hs
compiler/codeGen/StgCmmPrim.hs
compiler/codeGen/StgCmmTicky.hs