aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/parse.cc
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2023-12-18 22:18:05 +0100
committerUros Bizjak <ubizjak@gmail.com>2023-12-18 22:18:56 +0100
commit86b6daefc8ca00f6879779f6002ca575920d38d2 (patch)
treea0605969566d35e7aeaeb687335a0b3eac2758ae /gcc/go/gofrontend/parse.cc
parentb77691a90fc8a7e917417ce747bf78669304f951 (diff)
downloadgcc-86b6daefc8ca00f6879779f6002ca575920d38d2.zip
gcc-86b6daefc8ca00f6879779f6002ca575920d38d2.tar.gz
gcc-86b6daefc8ca00f6879779f6002ca575920d38d2.tar.bz2
i386: Eliminate redundant compare between set{z,nz} and j{z,nz}
Eliminate redundant compare between set{z,nz} and j{z,nz}: setz %al; test %al,%al; jz <...> -> setz %al; jnz <...> and setnz %al, test %al,%al; jz <...> -> setnz %al; jz <...>. We can use the original Zero-flag value instead of setting the temporary register and testing it for zero. gcc/ChangeLog: * config/i386/i386.md (redundant compare peephole2): New peephole2 pattern.
Diffstat (limited to 'gcc/go/gofrontend/parse.cc')
0 files changed, 0 insertions, 0 deletions