Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
5597 commits behind the upstream repository.
  • Sebastian Graf's avatar
    7e0c8b3b
    ANFise string literal arguments (#23270) · 7e0c8b3b
    Sebastian Graf authored and Marge Bot's avatar Marge Bot committed
    This instates the invariant that a trivial CoreExpr translates to an atomic
    StgExpr. Nice.
    
    Annoyingly, in -O0 we sometimes generate
    ```
    foo = case "blah"# of sat { __DEFAULT -> unpackCString# sat }
    ```
    which makes it a bit harder to spot that we can emit a standard
    `stg_unpack_cstring` thunk.
    
    Fixes #23270.
    7e0c8b3b
    History
    ANFise string literal arguments (#23270)
    Sebastian Graf authored and Marge Bot's avatar Marge Bot committed
    This instates the invariant that a trivial CoreExpr translates to an atomic
    StgExpr. Nice.
    
    Annoyingly, in -O0 we sometimes generate
    ```
    foo = case "blah"# of sat { __DEFAULT -> unpackCString# sat }
    ```
    which makes it a bit harder to spot that we can emit a standard
    `stg_unpack_cstring` thunk.
    
    Fixes #23270.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
T23270.stderr 1.38 KiB