diff options
author | Ömer Sinan Ağacan <omeragacan@gmail.com> | 2019-03-22 10:06:37 +0300 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-03-27 07:20:10 -0400 |
commit | 5730f86331df4aa9b3d7b5ab59b1ebeafceaeadb (patch) | |
tree | cd5cf7266a7885e95f72f28c7cb6f033440e8d3d /libraries/ghc-compact | |
parent | 3dec527a840a8165c33579bca09740ca9cf1f4de (diff) | |
download | haskell-5730f86331df4aa9b3d7b5ab59b1ebeafceaeadb.tar.gz |
Minor refactoring in copy array primops:
- `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.
Diffstat (limited to 'libraries/ghc-compact')
0 files changed, 0 insertions, 0 deletions