diff options
author | Dimitar Dimitrov <dimitar@dinux.eu> | 2022-08-20 23:58:27 +0300 |
---|---|---|
committer | Dimitar Dimitrov <dimitar@dinux.eu> | 2022-08-22 22:29:10 +0300 |
commit | 990124c35cd60cd23e0b70fc84cfb75311e80276 (patch) | |
tree | 7fe10eacaf165e21eaa5acbd4da87a68b43bb398 /gcc/collect-utils.cc | |
parent | 151effa22106a81f5835bb2dab7b95130f8fe2ef (diff) | |
download | gcc-990124c35cd60cd23e0b70fc84cfb75311e80276.zip gcc-990124c35cd60cd23e0b70fc84cfb75311e80276.tar.gz gcc-990124c35cd60cd23e0b70fc84cfb75311e80276.tar.bz2 |
pru: Optimize 64-bit logical operations
The earlyclobber in the pattern yields inefficient code due to
unnecessarily generated moves. Optimize by removing the earlyclobber
for two special alternatives:
- If OP2 is a small constant integer.
- If the logical bit operation has only two operands.
gcc/ChangeLog:
* config/pru/pru.md (pru_<code>di3): New alternative for
two operands but without earlyclobber.
gcc/testsuite/ChangeLog:
* gcc.target/pru/bitop-di.c: New test.
Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
Diffstat (limited to 'gcc/collect-utils.cc')
0 files changed, 0 insertions, 0 deletions