• Ömer Sinan Ağacan's avatar
    Minor refactoring in copy array primops: · 5730f863
    Ömer Sinan Ağacan authored
    - `emitCopySmallArray` now checks size before generating code and
      doesn't generate any code when size is 0. `emitCopyArray` already does
      this so this makes small/large array cases the same in argument
      checking.
    
    - In both `emitCopySmallArray` and `emitCopyArray` read the `dflags`
      after checking the argument.
    5730f863
Code owners : Ömer Sinan Ağacan and Simon Marlow
StgCmmPrim.hs 112 KB