Micro-optimization for move-from-signed, eliminating one inst. snapshot-2013-01
authorRaymond Toy <toy.raymond@gmail.com>
Tue, 1 Jan 2013 18:34:38 +0000 (10:34 -0800)
committerRaymond Toy <toy.raymond@gmail.com>
Tue, 1 Jan 2013 18:34:38 +0000 (10:34 -0800)
src/compiler/sparc/move.lisp

index 6ad7391..7b683b5 100644 (file)
       ;; Frode Vatvedt Fjeld: (zerop (logand #b110 (1+ temp)))
       (inst srln temp x positive-fixnum-bits)
       (inst add temp 1)
-      (inst and temp #b110)
-      (inst cmp temp)
+      (inst andcc temp #b110)
       (inst b :eq done)
       (inst slln y x fixnum-tag-bits)