Skip to content

Minor refactoring in copy array primops:

Ömer Sinan Ağacan requested to merge osa1/ghc:refactor_array_copy into master
  • 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.

Edited by Andreas Klebinger

Merge request reports