summaryrefslogtreecommitdiff
path: root/sys/src/cmd/grep/comp.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-03-29 19:44:04 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2014-03-29 19:44:04 +0100
commitcde97a4d5f17fe597cc55aa4653082bf2c01598c (patch)
tree449fdbe028b01b9d21031c0696ba125edebc3ebe /sys/src/cmd/grep/comp.c
parent91bed257fa7382c90fdd9d99089442b453090bba (diff)
6c, 8c: optimize away CMPL/CMPQ reg, $0 instruction in peephole pass
when the previous instruction sets the zero flag, we can remove the CMPL/CMPQ instruction. this removes compares for zero/non zero tests only. it only looks at the previous non-nop instruction to see if it sets our compare value register.
Diffstat (limited to 'sys/src/cmd/grep/comp.c')
0 files changed, 0 insertions, 0 deletions