r241935 - in /trunk/gcc: ChangeLog config/rs600...
segher@gcc.gnu.org
segher@gcc.gnu.org
Mon Nov 7 20:54:00 GMT 2016
Author: segher
Date: Mon Nov 7 20:54:42 2016
New Revision: 241935
URL: https://gcc.gnu.org/viewcvs?rev=241935&root=gcc&view=rev
Log:
rs6000: Do swdiv at expand time
We transform floating point divide instructions to a faster series of
simple instructions, "swdiv". Currently we do not do that until the
first splitter pass, which is much too late for most optimisations
that can happen on those new instructions, e.g. the constant loads
are not CSEd inside an unrolled loop. This patch changes things so
those divide instructions are expanded during expand already.
* config/rs6000/rs6000.md (div<mode>3): Expand using rs6000_emit_swdiv
if appropriate.
* config/rs6000/vector.md (div<mode>3): Ditto.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/rs6000/rs6000.md
trunk/gcc/config/rs6000/vector.md
More information about the Gcc-cvs
mailing list