Skip to content
Snippets Groups Projects
Commit 48d97225 authored by wlott's avatar wlott
Browse files

Spiffed up ASH derived type optimizer. If the shift amount is reasonably

small, (e.g. (integer 0 15)) it will shift the range of the shiftee to
obtain the domain.

Changed the %ldb transform to map to (logand (ash num (- pos)) (mask size))
if the result is going to be a fixnum.

Added transforms for floor, mod, truncate, and rem that check to see if the
argument is a constant power of 2, and if so, change the divide into a
shift.
parent 67750b4d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment