diff options
author | Mike Pall <mike> | 2010-03-15 17:02:53 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2010-03-15 17:02:53 +0100 |
commit | c4727220e889dccf06427fd6e473741c0829e344 (patch) | |
tree | cb52697fe78bec674692a3d925e20edc7da956f8 /src/lj_asm.c | |
parent | 24402ede0421876b3e681b153c5355e206376799 (diff) | |
download | luajit-c4727220e889dccf06427fd6e473741c0829e344.tar.gz luajit-c4727220e889dccf06427fd6e473741c0829e344.tar.bz2 luajit-c4727220e889dccf06427fd6e473741c0829e344.zip |
Add array bounds check elimination (-Oabc, on by default).
Diffstat (limited to 'src/lj_asm.c')
-rw-r--r-- | src/lj_asm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_asm.c b/src/lj_asm.c index c749ada0..9e8f1fc0 100644 --- a/src/lj_asm.c +++ b/src/lj_asm.c | |||
@@ -2571,7 +2571,7 @@ static void asm_comp_(ASMState *as, IRIns *ir, int cc) | |||
2571 | } else { | 2571 | } else { |
2572 | IRRef lref = ir->op1, rref = ir->op2; | 2572 | IRRef lref = ir->op1, rref = ir->op2; |
2573 | IROp leftop = (IROp)(IR(lref)->o); | 2573 | IROp leftop = (IROp)(IR(lref)->o); |
2574 | lua_assert(irt_isint(ir->t) || (irt_isaddr(ir->t) && (cc & 0xe) == CC_E)); | 2574 | lua_assert(irt_isint(ir->t) || irt_isaddr(ir->t)); |
2575 | /* Swap constants (only for ABC) and fusable loads to the right. */ | 2575 | /* Swap constants (only for ABC) and fusable loads to the right. */ |
2576 | if (irref_isk(lref) || (!irref_isk(rref) && opisfusableload(leftop))) { | 2576 | if (irref_isk(lref) || (!irref_isk(rref) && opisfusableload(leftop))) { |
2577 | if ((cc & 0xc) == 0xc) cc ^= 3; /* L <-> G, LE <-> GE */ | 2577 | if ((cc & 0xc) == 0xc) cc ^= 3; /* L <-> G, LE <-> GE */ |