Don't short out top-level indirections if there's a INLINE/NOINLINE pragma
authorsimonpj@microsoft.com <unknown>
Fri, 24 Apr 2009 12:32:38 +0000 (12:32 +0000)
committersimonpj@microsoft.com <unknown>
Fri, 24 Apr 2009 12:32:38 +0000 (12:32 +0000)
commit7936b988d6d0a5f9a9b439c7d4a6adf616ddb9b5
tree5b1faaaacb688eb3438391be2e3258a393494c97
parentc1cecc0b8c71fc84d4d1d9f1832b5fb172fe433e
Don't short out top-level indirections if there's a INLINE/NOINLINE pragma

The top-level indirection-shorting, done in SimplCore.shortOutIndirections,
was accidentally nuking a NOINLINE pragma.  This patch adopts a slightly
more conservative approach to indirection-shorting, only doing so if
we do not thereby overwrite or lose some user-supplied pragmas.
compiler/simplCore/SimplCore.lhs