diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2023-12-18 22:18:05 +0100 |
---|---|---|
committer | Uros Bizjak <ubizjak@gmail.com> | 2023-12-18 22:18:56 +0100 |
commit | 86b6daefc8ca00f6879779f6002ca575920d38d2 (patch) | |
tree | a0605969566d35e7aeaeb687335a0b3eac2758ae /gcc/go/gofrontend/parse.cc | |
parent | b77691a90fc8a7e917417ce747bf78669304f951 (diff) | |
download | gcc-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