Optimize ARRAY-IN-BOUNDS-P and ARRAY-ROW-MAJOR-INDEX.
commit2d52f1b25d2527f3d3b169c3c4ea265f95184fb1
authorStas Boukarev <stassats@gmail.com>
Tue, 30 Jun 2015 20:51:27 +0000 (30 23:51 +0300)
committerStas Boukarev <stassats@gmail.com>
Tue, 30 Jun 2015 20:51:27 +0000 (30 23:51 +0300)
treede0486ff095df9332350f767c6479e47467f42b2
parent4e602914e8de0459a33eb325748a718d5356d3b2
Optimize ARRAY-IN-BOUNDS-P and ARRAY-ROW-MAJOR-INDEX.

Rewrite %array-row-major-index accessing &more args.
Don't use %array-row-major-index for implementing array-in-bounds-p,
it can be done faster.
Transform (array-in-bounds-p x y) into a length check.
src/code/array.lisp
src/compiler/array-tran.lisp
src/compiler/ir1opt.lisp
src/compiler/seqtran.lisp
tests/compiler.pure.lisp