Search
10:53:09
stassats
can also optimize (zerop (logand #xFF y)) on the VOP level, except need to be careful around (logand -1 y)
10:53:58
stassats
but it gets increasingly unwieldy without some form of pattern matching, and would be better if done on the instruction level
10:54:27
stassats
since not on all backends does AND affect flags
11:00:24
stassats
but i don't have any better ideas
11:00:36
stassats
so, add a slot for optimizers on vop-info, and call it
11:04:43
stassats
let's see how many logand == 0 is there first
11:12:54
stassats
loading mcclim, i get 38 hits
11:17:33
stassats
AND X,Y TEST X,X => AND X,Y is not ideal, ideal would be => TEST X,Y, preserving the result register
11:20:18
stassats
that would also help riscs