rs6000: Improve fusion assembler output
authorSegher Boessenkool <segher@kernel.crashing.org>
Sat, 2 Dec 2017 01:33:39 +0000 (02:33 +0100)
committerSegher Boessenkool <segher@gcc.gnu.org>
Sat, 2 Dec 2017 01:33:39 +0000 (02:33 +0100)
commit0bcd172e9d3dd38b4dff32f089e943da293682ff
tree45474a5213e717176c18e4a93349931c0c926a86
parent81094bcb458cd005474156b5e0bc0c7c72387bbc
rs6000: Improve fusion assembler output

This improves the output for load and store fusion a little.  In most
cases it removes the comment output, because that makes the generated
assembler code hard to read, and equivalent info is available with -dp
anyway.  For the vector loads it puts the comment on the second insn,
where it doesn't interfere with other debug comments.

* config/rs6000/rs6000-protos.h (emit_fusion_addis): Remove last two
parameters from prototype.
* config/rs6000/rs6000.c (emit_fusion_addis): Remove last two
parameters.  Don't print a comment.
(emit_fusion_gpr_load): Adjust.
(emit_fusion_load_store): Adjust.
* config/rs6000/rs6000.md (*fusion_p9_<mode>_constant): Adjust.
* config/rs6000/vsx.md (two peepholes): Print the "vector load fusion"
comment on the second line.

gcc/testsuite/
* gcc.target/powerpc/fusion.c: Add -dp to options.  Adjust the expected
output.
* gcc.target/powerpc/fusion3.c: Ditto.
* gcc.target/powerpc/fusion4.c: Ditto.

From-SVN: r255350
gcc/ChangeLog
gcc/config/rs6000/rs6000-protos.h
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/rs6000.md
gcc/config/rs6000/vsx.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/fusion.c
gcc/testsuite/gcc.target/powerpc/fusion3.c
gcc/testsuite/gcc.target/powerpc/fusion4.c