aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vectorizer.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-01-14 16:56:44 +0100
committerMartin Liska <mliska@suse.cz>2022-01-17 22:12:04 +0100
commit5c69acb32329d49e58c26fa41ae74229a52b9106 (patch)
treeddb05f9d73afb6f998457d2ac4b720e3b3b60483 /gcc/tree-vectorizer.c
parent490e23032baaece71f2ec09fa1805064b150fbc2 (diff)
downloadgcc-5c69acb32329d49e58c26fa41ae74229a52b9106.zip
gcc-5c69acb32329d49e58c26fa41ae74229a52b9106.tar.gz
gcc-5c69acb32329d49e58c26fa41ae74229a52b9106.tar.bz2
Rename .c files to .cc files.
gcc/ada/ChangeLog: * adadecode.c: Moved to... * adadecode.cc: ...here. * affinity.c: Moved to... * affinity.cc: ...here. * argv-lynxos178-raven-cert.c: Moved to... * argv-lynxos178-raven-cert.cc: ...here. * argv.c: Moved to... * argv.cc: ...here. * aux-io.c: Moved to... * aux-io.cc: ...here. * cio.c: Moved to... * cio.cc: ...here. * cstreams.c: Moved to... * cstreams.cc: ...here. * env.c: Moved to... * env.cc: ...here. * exit.c: Moved to... * exit.cc: ...here. * expect.c: Moved to... * expect.cc: ...here. * final.c: Moved to... * final.cc: ...here. * gcc-interface/cuintp.c: Moved to... * gcc-interface/cuintp.cc: ...here. * gcc-interface/decl.c: Moved to... * gcc-interface/decl.cc: ...here. * gcc-interface/misc.c: Moved to... * gcc-interface/misc.cc: ...here. * gcc-interface/targtyps.c: Moved to... * gcc-interface/targtyps.cc: ...here. * gcc-interface/trans.c: Moved to... * gcc-interface/trans.cc: ...here. * gcc-interface/utils.c: Moved to... * gcc-interface/utils.cc: ...here. * gcc-interface/utils2.c: Moved to... * gcc-interface/utils2.cc: ...here. * init.c: Moved to... * init.cc: ...here. * initialize.c: Moved to... * initialize.cc: ...here. * libgnarl/thread.c: Moved to... * libgnarl/thread.cc: ...here. * link.c: Moved to... * link.cc: ...here. * locales.c: Moved to... * locales.cc: ...here. * mkdir.c: Moved to... * mkdir.cc: ...here. * raise.c: Moved to... * raise.cc: ...here. * rtfinal.c: Moved to... * rtfinal.cc: ...here. * rtinit.c: Moved to... * rtinit.cc: ...here. * seh_init.c: Moved to... * seh_init.cc: ...here. * sigtramp-armdroid.c: Moved to... * sigtramp-armdroid.cc: ...here. * sigtramp-ios.c: Moved to... * sigtramp-ios.cc: ...here. * sigtramp-qnx.c: Moved to... * sigtramp-qnx.cc: ...here. * sigtramp-vxworks.c: Moved to... * sigtramp-vxworks.cc: ...here. * socket.c: Moved to... * socket.cc: ...here. * tracebak.c: Moved to... * tracebak.cc: ...here. * version.c: Moved to... * version.cc: ...here. * vx_stack_info.c: Moved to... * vx_stack_info.cc: ...here. gcc/ChangeLog: * adjust-alignment.c: Moved to... * adjust-alignment.cc: ...here. * alias.c: Moved to... * alias.cc: ...here. * alloc-pool.c: Moved to... * alloc-pool.cc: ...here. * asan.c: Moved to... * asan.cc: ...here. * attribs.c: Moved to... * attribs.cc: ...here. * auto-inc-dec.c: Moved to... * auto-inc-dec.cc: ...here. * auto-profile.c: Moved to... * auto-profile.cc: ...here. * bb-reorder.c: Moved to... * bb-reorder.cc: ...here. * bitmap.c: Moved to... * bitmap.cc: ...here. * btfout.c: Moved to... * btfout.cc: ...here. * builtins.c: Moved to... * builtins.cc: ...here. * caller-save.c: Moved to... * caller-save.cc: ...here. * calls.c: Moved to... * calls.cc: ...here. * ccmp.c: Moved to... * ccmp.cc: ...here. * cfg.c: Moved to... * cfg.cc: ...here. * cfganal.c: Moved to... * cfganal.cc: ...here. * cfgbuild.c: Moved to... * cfgbuild.cc: ...here. * cfgcleanup.c: Moved to... * cfgcleanup.cc: ...here. * cfgexpand.c: Moved to... * cfgexpand.cc: ...here. * cfghooks.c: Moved to... * cfghooks.cc: ...here. * cfgloop.c: Moved to... * cfgloop.cc: ...here. * cfgloopanal.c: Moved to... * cfgloopanal.cc: ...here. * cfgloopmanip.c: Moved to... * cfgloopmanip.cc: ...here. * cfgrtl.c: Moved to... * cfgrtl.cc: ...here. * cgraph.c: Moved to... * cgraph.cc: ...here. * cgraphbuild.c: Moved to... * cgraphbuild.cc: ...here. * cgraphclones.c: Moved to... * cgraphclones.cc: ...here. * cgraphunit.c: Moved to... * cgraphunit.cc: ...here. * collect-utils.c: Moved to... * collect-utils.cc: ...here. * collect2-aix.c: Moved to... * collect2-aix.cc: ...here. * collect2.c: Moved to... * collect2.cc: ...here. * combine-stack-adj.c: Moved to... * combine-stack-adj.cc: ...here. * combine.c: Moved to... * combine.cc: ...here. * common/common-targhooks.c: Moved to... * common/common-targhooks.cc: ...here. * common/config/aarch64/aarch64-common.c: Moved to... * common/config/aarch64/aarch64-common.cc: ...here. * common/config/alpha/alpha-common.c: Moved to... * common/config/alpha/alpha-common.cc: ...here. * common/config/arc/arc-common.c: Moved to... * common/config/arc/arc-common.cc: ...here. * common/config/arm/arm-common.c: Moved to... * common/config/arm/arm-common.cc: ...here. * common/config/avr/avr-common.c: Moved to... * common/config/avr/avr-common.cc: ...here. * common/config/bfin/bfin-common.c: Moved to... * common/config/bfin/bfin-common.cc: ...here. * common/config/bpf/bpf-common.c: Moved to... * common/config/bpf/bpf-common.cc: ...here. * common/config/c6x/c6x-common.c: Moved to... * common/config/c6x/c6x-common.cc: ...here. * common/config/cr16/cr16-common.c: Moved to... * common/config/cr16/cr16-common.cc: ...here. * common/config/cris/cris-common.c: Moved to... * common/config/cris/cris-common.cc: ...here. * common/config/csky/csky-common.c: Moved to... * common/config/csky/csky-common.cc: ...here. * common/config/default-common.c: Moved to... * common/config/default-common.cc: ...here. * common/config/epiphany/epiphany-common.c: Moved to... * common/config/epiphany/epiphany-common.cc: ...here. * common/config/fr30/fr30-common.c: Moved to... * common/config/fr30/fr30-common.cc: ...here. * common/config/frv/frv-common.c: Moved to... * common/config/frv/frv-common.cc: ...here. * common/config/gcn/gcn-common.c: Moved to... * common/config/gcn/gcn-common.cc: ...here. * common/config/h8300/h8300-common.c: Moved to... * common/config/h8300/h8300-common.cc: ...here. * common/config/i386/i386-common.c: Moved to... * common/config/i386/i386-common.cc: ...here. * common/config/ia64/ia64-common.c: Moved to... * common/config/ia64/ia64-common.cc: ...here. * common/config/iq2000/iq2000-common.c: Moved to... * common/config/iq2000/iq2000-common.cc: ...here. * common/config/lm32/lm32-common.c: Moved to... * common/config/lm32/lm32-common.cc: ...here. * common/config/m32r/m32r-common.c: Moved to... * common/config/m32r/m32r-common.cc: ...here. * common/config/m68k/m68k-common.c: Moved to... * common/config/m68k/m68k-common.cc: ...here. * common/config/mcore/mcore-common.c: Moved to... * common/config/mcore/mcore-common.cc: ...here. * common/config/microblaze/microblaze-common.c: Moved to... * common/config/microblaze/microblaze-common.cc: ...here. * common/config/mips/mips-common.c: Moved to... * common/config/mips/mips-common.cc: ...here. * common/config/mmix/mmix-common.c: Moved to... * common/config/mmix/mmix-common.cc: ...here. * common/config/mn10300/mn10300-common.c: Moved to... * common/config/mn10300/mn10300-common.cc: ...here. * common/config/msp430/msp430-common.c: Moved to... * common/config/msp430/msp430-common.cc: ...here. * common/config/nds32/nds32-common.c: Moved to... * common/config/nds32/nds32-common.cc: ...here. * common/config/nios2/nios2-common.c: Moved to... * common/config/nios2/nios2-common.cc: ...here. * common/config/nvptx/nvptx-common.c: Moved to... * common/config/nvptx/nvptx-common.cc: ...here. * common/config/or1k/or1k-common.c: Moved to... * common/config/or1k/or1k-common.cc: ...here. * common/config/pa/pa-common.c: Moved to... * common/config/pa/pa-common.cc: ...here. * common/config/pdp11/pdp11-common.c: Moved to... * common/config/pdp11/pdp11-common.cc: ...here. * common/config/pru/pru-common.c: Moved to... * common/config/pru/pru-common.cc: ...here. * common/config/riscv/riscv-common.c: Moved to... * common/config/riscv/riscv-common.cc: ...here. * common/config/rs6000/rs6000-common.c: Moved to... * common/config/rs6000/rs6000-common.cc: ...here. * common/config/rx/rx-common.c: Moved to... * common/config/rx/rx-common.cc: ...here. * common/config/s390/s390-common.c: Moved to... * common/config/s390/s390-common.cc: ...here. * common/config/sh/sh-common.c: Moved to... * common/config/sh/sh-common.cc: ...here. * common/config/sparc/sparc-common.c: Moved to... * common/config/sparc/sparc-common.cc: ...here. * common/config/tilegx/tilegx-common.c: Moved to... * common/config/tilegx/tilegx-common.cc: ...here. * common/config/tilepro/tilepro-common.c: Moved to... * common/config/tilepro/tilepro-common.cc: ...here. * common/config/v850/v850-common.c: Moved to... * common/config/v850/v850-common.cc: ...here. * common/config/vax/vax-common.c: Moved to... * common/config/vax/vax-common.cc: ...here. * common/config/visium/visium-common.c: Moved to... * common/config/visium/visium-common.cc: ...here. * common/config/xstormy16/xstormy16-common.c: Moved to... * common/config/xstormy16/xstormy16-common.cc: ...here. * common/config/xtensa/xtensa-common.c: Moved to... * common/config/xtensa/xtensa-common.cc: ...here. * compare-elim.c: Moved to... * compare-elim.cc: ...here. * config/aarch64/aarch64-bti-insert.c: Moved to... * config/aarch64/aarch64-bti-insert.cc: ...here. * config/aarch64/aarch64-builtins.c: Moved to... * config/aarch64/aarch64-builtins.cc: ...here. * config/aarch64/aarch64-c.c: Moved to... * config/aarch64/aarch64-c.cc: ...here. * config/aarch64/aarch64-d.c: Moved to... * config/aarch64/aarch64-d.cc: ...here. * config/aarch64/aarch64.c: Moved to... * config/aarch64/aarch64.cc: ...here. * config/aarch64/cortex-a57-fma-steering.c: Moved to... * config/aarch64/cortex-a57-fma-steering.cc: ...here. * config/aarch64/driver-aarch64.c: Moved to... * config/aarch64/driver-aarch64.cc: ...here. * config/aarch64/falkor-tag-collision-avoidance.c: Moved to... * config/aarch64/falkor-tag-collision-avoidance.cc: ...here. * config/aarch64/host-aarch64-darwin.c: Moved to... * config/aarch64/host-aarch64-darwin.cc: ...here. * config/alpha/alpha.c: Moved to... * config/alpha/alpha.cc: ...here. * config/alpha/driver-alpha.c: Moved to... * config/alpha/driver-alpha.cc: ...here. * config/arc/arc-c.c: Moved to... * config/arc/arc-c.cc: ...here. * config/arc/arc.c: Moved to... * config/arc/arc.cc: ...here. * config/arc/driver-arc.c: Moved to... * config/arc/driver-arc.cc: ...here. * config/arm/aarch-common.c: Moved to... * config/arm/aarch-common.cc: ...here. * config/arm/arm-builtins.c: Moved to... * config/arm/arm-builtins.cc: ...here. * config/arm/arm-c.c: Moved to... * config/arm/arm-c.cc: ...here. * config/arm/arm-d.c: Moved to... * config/arm/arm-d.cc: ...here. * config/arm/arm.c: Moved to... * config/arm/arm.cc: ...here. * config/arm/driver-arm.c: Moved to... * config/arm/driver-arm.cc: ...here. * config/avr/avr-c.c: Moved to... * config/avr/avr-c.cc: ...here. * config/avr/avr-devices.c: Moved to... * config/avr/avr-devices.cc: ...here. * config/avr/avr-log.c: Moved to... * config/avr/avr-log.cc: ...here. * config/avr/avr.c: Moved to... * config/avr/avr.cc: ...here. * config/avr/driver-avr.c: Moved to... * config/avr/driver-avr.cc: ...here. * config/avr/gen-avr-mmcu-specs.c: Moved to... * config/avr/gen-avr-mmcu-specs.cc: ...here. * config/avr/gen-avr-mmcu-texi.c: Moved to... * config/avr/gen-avr-mmcu-texi.cc: ...here. * config/bfin/bfin.c: Moved to... * config/bfin/bfin.cc: ...here. * config/bpf/bpf.c: Moved to... * config/bpf/bpf.cc: ...here. * config/bpf/coreout.c: Moved to... * config/bpf/coreout.cc: ...here. * config/c6x/c6x.c: Moved to... * config/c6x/c6x.cc: ...here. * config/cr16/cr16.c: Moved to... * config/cr16/cr16.cc: ...here. * config/cris/cris.c: Moved to... * config/cris/cris.cc: ...here. * config/csky/csky.c: Moved to... * config/csky/csky.cc: ...here. * config/darwin-c.c: Moved to... * config/darwin-c.cc: ...here. * config/darwin-d.c: Moved to... * config/darwin-d.cc: ...here. * config/darwin-driver.c: Moved to... * config/darwin-driver.cc: ...here. * config/darwin-f.c: Moved to... * config/darwin-f.cc: ...here. * config/darwin.c: Moved to... * config/darwin.cc: ...here. * config/default-c.c: Moved to... * config/default-c.cc: ...here. * config/default-d.c: Moved to... * config/default-d.cc: ...here. * config/dragonfly-d.c: Moved to... * config/dragonfly-d.cc: ...here. * config/epiphany/epiphany.c: Moved to... * config/epiphany/epiphany.cc: ...here. * config/epiphany/mode-switch-use.c: Moved to... * config/epiphany/mode-switch-use.cc: ...here. * config/epiphany/resolve-sw-modes.c: Moved to... * config/epiphany/resolve-sw-modes.cc: ...here. * config/fr30/fr30.c: Moved to... * config/fr30/fr30.cc: ...here. * config/freebsd-d.c: Moved to... * config/freebsd-d.cc: ...here. * config/frv/frv.c: Moved to... * config/frv/frv.cc: ...here. * config/ft32/ft32.c: Moved to... * config/ft32/ft32.cc: ...here. * config/gcn/driver-gcn.c: Moved to... * config/gcn/driver-gcn.cc: ...here. * config/gcn/gcn-run.c: Moved to... * config/gcn/gcn-run.cc: ...here. * config/gcn/gcn-tree.c: Moved to... * config/gcn/gcn-tree.cc: ...here. * config/gcn/gcn.c: Moved to... * config/gcn/gcn.cc: ...here. * config/gcn/mkoffload.c: Moved to... * config/gcn/mkoffload.cc: ...here. * config/glibc-c.c: Moved to... * config/glibc-c.cc: ...here. * config/glibc-d.c: Moved to... * config/glibc-d.cc: ...here. * config/h8300/h8300.c: Moved to... * config/h8300/h8300.cc: ...here. * config/host-darwin.c: Moved to... * config/host-darwin.cc: ...here. * config/host-hpux.c: Moved to... * config/host-hpux.cc: ...here. * config/host-linux.c: Moved to... * config/host-linux.cc: ...here. * config/host-netbsd.c: Moved to... * config/host-netbsd.cc: ...here. * config/host-openbsd.c: Moved to... * config/host-openbsd.cc: ...here. * config/host-solaris.c: Moved to... * config/host-solaris.cc: ...here. * config/i386/djgpp.c: Moved to... * config/i386/djgpp.cc: ...here. * config/i386/driver-i386.c: Moved to... * config/i386/driver-i386.cc: ...here. * config/i386/driver-mingw32.c: Moved to... * config/i386/driver-mingw32.cc: ...here. * config/i386/gnu-property.c: Moved to... * config/i386/gnu-property.cc: ...here. * config/i386/host-cygwin.c: Moved to... * config/i386/host-cygwin.cc: ...here. * config/i386/host-i386-darwin.c: Moved to... * config/i386/host-i386-darwin.cc: ...here. * config/i386/host-mingw32.c: Moved to... * config/i386/host-mingw32.cc: ...here. * config/i386/i386-builtins.c: Moved to... * config/i386/i386-builtins.cc: ...here. * config/i386/i386-c.c: Moved to... * config/i386/i386-c.cc: ...here. * config/i386/i386-d.c: Moved to... * config/i386/i386-d.cc: ...here. * config/i386/i386-expand.c: Moved to... * config/i386/i386-expand.cc: ...here. * config/i386/i386-features.c: Moved to... * config/i386/i386-features.cc: ...here. * config/i386/i386-options.c: Moved to... * config/i386/i386-options.cc: ...here. * config/i386/i386.c: Moved to... * config/i386/i386.cc: ...here. * config/i386/intelmic-mkoffload.c: Moved to... * config/i386/intelmic-mkoffload.cc: ...here. * config/i386/msformat-c.c: Moved to... * config/i386/msformat-c.cc: ...here. * config/i386/winnt-cxx.c: Moved to... * config/i386/winnt-cxx.cc: ...here. * config/i386/winnt-d.c: Moved to... * config/i386/winnt-d.cc: ...here. * config/i386/winnt-stubs.c: Moved to... * config/i386/winnt-stubs.cc: ...here. * config/i386/winnt.c: Moved to... * config/i386/winnt.cc: ...here. * config/i386/x86-tune-sched-atom.c: Moved to... * config/i386/x86-tune-sched-atom.cc: ...here. * config/i386/x86-tune-sched-bd.c: Moved to... * config/i386/x86-tune-sched-bd.cc: ...here. * config/i386/x86-tune-sched-core.c: Moved to... * config/i386/x86-tune-sched-core.cc: ...here. * config/i386/x86-tune-sched.c: Moved to... * config/i386/x86-tune-sched.cc: ...here. * config/ia64/ia64-c.c: Moved to... * config/ia64/ia64-c.cc: ...here. * config/ia64/ia64.c: Moved to... * config/ia64/ia64.cc: ...here. * config/iq2000/iq2000.c: Moved to... * config/iq2000/iq2000.cc: ...here. * config/linux.c: Moved to... * config/linux.cc: ...here. * config/lm32/lm32.c: Moved to... * config/lm32/lm32.cc: ...here. * config/m32c/m32c-pragma.c: Moved to... * config/m32c/m32c-pragma.cc: ...here. * config/m32c/m32c.c: Moved to... * config/m32c/m32c.cc: ...here. * config/m32r/m32r.c: Moved to... * config/m32r/m32r.cc: ...here. * config/m68k/m68k.c: Moved to... * config/m68k/m68k.cc: ...here. * config/mcore/mcore.c: Moved to... * config/mcore/mcore.cc: ...here. * config/microblaze/microblaze-c.c: Moved to... * config/microblaze/microblaze-c.cc: ...here. * config/microblaze/microblaze.c: Moved to... * config/microblaze/microblaze.cc: ...here. * config/mips/driver-native.c: Moved to... * config/mips/driver-native.cc: ...here. * config/mips/frame-header-opt.c: Moved to... * config/mips/frame-header-opt.cc: ...here. * config/mips/mips-d.c: Moved to... * config/mips/mips-d.cc: ...here. * config/mips/mips.c: Moved to... * config/mips/mips.cc: ...here. * config/mmix/mmix.c: Moved to... * config/mmix/mmix.cc: ...here. * config/mn10300/mn10300.c: Moved to... * config/mn10300/mn10300.cc: ...here. * config/moxie/moxie.c: Moved to... * config/moxie/moxie.cc: ...here. * config/msp430/driver-msp430.c: Moved to... * config/msp430/driver-msp430.cc: ...here. * config/msp430/msp430-c.c: Moved to... * config/msp430/msp430-c.cc: ...here. * config/msp430/msp430-devices.c: Moved to... * config/msp430/msp430-devices.cc: ...here. * config/msp430/msp430.c: Moved to... * config/msp430/msp430.cc: ...here. * config/nds32/nds32-cost.c: Moved to... * config/nds32/nds32-cost.cc: ...here. * config/nds32/nds32-fp-as-gp.c: Moved to... * config/nds32/nds32-fp-as-gp.cc: ...here. * config/nds32/nds32-intrinsic.c: Moved to... * config/nds32/nds32-intrinsic.cc: ...here. * config/nds32/nds32-isr.c: Moved to... * config/nds32/nds32-isr.cc: ...here. * config/nds32/nds32-md-auxiliary.c: Moved to... * config/nds32/nds32-md-auxiliary.cc: ...here. * config/nds32/nds32-memory-manipulation.c: Moved to... * config/nds32/nds32-memory-manipulation.cc: ...here. * config/nds32/nds32-pipelines-auxiliary.c: Moved to... * config/nds32/nds32-pipelines-auxiliary.cc: ...here. * config/nds32/nds32-predicates.c: Moved to... * config/nds32/nds32-predicates.cc: ...here. * config/nds32/nds32-relax-opt.c: Moved to... * config/nds32/nds32-relax-opt.cc: ...here. * config/nds32/nds32-utils.c: Moved to... * config/nds32/nds32-utils.cc: ...here. * config/nds32/nds32.c: Moved to... * config/nds32/nds32.cc: ...here. * config/netbsd-d.c: Moved to... * config/netbsd-d.cc: ...here. * config/netbsd.c: Moved to... * config/netbsd.cc: ...here. * config/nios2/nios2.c: Moved to... * config/nios2/nios2.cc: ...here. * config/nvptx/mkoffload.c: Moved to... * config/nvptx/mkoffload.cc: ...here. * config/nvptx/nvptx-c.c: Moved to... * config/nvptx/nvptx-c.cc: ...here. * config/nvptx/nvptx.c: Moved to... * config/nvptx/nvptx.cc: ...here. * config/openbsd-d.c: Moved to... * config/openbsd-d.cc: ...here. * config/or1k/or1k.c: Moved to... * config/or1k/or1k.cc: ...here. * config/pa/pa-d.c: Moved to... * config/pa/pa-d.cc: ...here. * config/pa/pa.c: Moved to... * config/pa/pa.cc: ...here. * config/pdp11/pdp11.c: Moved to... * config/pdp11/pdp11.cc: ...here. * config/pru/pru-passes.c: Moved to... * config/pru/pru-passes.cc: ...here. * config/pru/pru-pragma.c: Moved to... * config/pru/pru-pragma.cc: ...here. * config/pru/pru.c: Moved to... * config/pru/pru.cc: ...here. * config/riscv/riscv-builtins.c: Moved to... * config/riscv/riscv-builtins.cc: ...here. * config/riscv/riscv-c.c: Moved to... * config/riscv/riscv-c.cc: ...here. * config/riscv/riscv-d.c: Moved to... * config/riscv/riscv-d.cc: ...here. * config/riscv/riscv-shorten-memrefs.c: Moved to... * config/riscv/riscv-shorten-memrefs.cc: ...here. * config/riscv/riscv-sr.c: Moved to... * config/riscv/riscv-sr.cc: ...here. * config/riscv/riscv.c: Moved to... * config/riscv/riscv.cc: ...here. * config/rl78/rl78-c.c: Moved to... * config/rl78/rl78-c.cc: ...here. * config/rl78/rl78.c: Moved to... * config/rl78/rl78.cc: ...here. * config/rs6000/driver-rs6000.c: Moved to... * config/rs6000/driver-rs6000.cc: ...here. * config/rs6000/host-darwin.c: Moved to... * config/rs6000/host-darwin.cc: ...here. * config/rs6000/host-ppc64-darwin.c: Moved to... * config/rs6000/host-ppc64-darwin.cc: ...here. * config/rs6000/rbtree.c: Moved to... * config/rs6000/rbtree.cc: ...here. * config/rs6000/rs6000-c.c: Moved to... * config/rs6000/rs6000-c.cc: ...here. * config/rs6000/rs6000-call.c: Moved to... * config/rs6000/rs6000-call.cc: ...here. * config/rs6000/rs6000-d.c: Moved to... * config/rs6000/rs6000-d.cc: ...here. * config/rs6000/rs6000-gen-builtins.c: Moved to... * config/rs6000/rs6000-gen-builtins.cc: ...here. * config/rs6000/rs6000-linux.c: Moved to... * config/rs6000/rs6000-linux.cc: ...here. * config/rs6000/rs6000-logue.c: Moved to... * config/rs6000/rs6000-logue.cc: ...here. * config/rs6000/rs6000-p8swap.c: Moved to... * config/rs6000/rs6000-p8swap.cc: ...here. * config/rs6000/rs6000-pcrel-opt.c: Moved to... * config/rs6000/rs6000-pcrel-opt.cc: ...here. * config/rs6000/rs6000-string.c: Moved to... * config/rs6000/rs6000-string.cc: ...here. * config/rs6000/rs6000.c: Moved to... * config/rs6000/rs6000.cc: ...here. * config/rx/rx.c: Moved to... * config/rx/rx.cc: ...here. * config/s390/driver-native.c: Moved to... * config/s390/driver-native.cc: ...here. * config/s390/s390-c.c: Moved to... * config/s390/s390-c.cc: ...here. * config/s390/s390-d.c: Moved to... * config/s390/s390-d.cc: ...here. * config/s390/s390.c: Moved to... * config/s390/s390.cc: ...here. * config/sh/divtab-sh4-300.c: Moved to... * config/sh/divtab-sh4-300.cc: ...here. * config/sh/divtab-sh4.c: Moved to... * config/sh/divtab-sh4.cc: ...here. * config/sh/divtab.c: Moved to... * config/sh/divtab.cc: ...here. * config/sh/sh-c.c: Moved to... * config/sh/sh-c.cc: ...here. * config/sh/sh.c: Moved to... * config/sh/sh.cc: ...here. * config/sol2-c.c: Moved to... * config/sol2-c.cc: ...here. * config/sol2-cxx.c: Moved to... * config/sol2-cxx.cc: ...here. * config/sol2-d.c: Moved to... * config/sol2-d.cc: ...here. * config/sol2-stubs.c: Moved to... * config/sol2-stubs.cc: ...here. * config/sol2.c: Moved to... * config/sol2.cc: ...here. * config/sparc/driver-sparc.c: Moved to... * config/sparc/driver-sparc.cc: ...here. * config/sparc/sparc-c.c: Moved to... * config/sparc/sparc-c.cc: ...here. * config/sparc/sparc-d.c: Moved to... * config/sparc/sparc-d.cc: ...here. * config/sparc/sparc.c: Moved to... * config/sparc/sparc.cc: ...here. * config/stormy16/stormy16.c: Moved to... * config/stormy16/stormy16.cc: ...here. * config/tilegx/mul-tables.c: Moved to... * config/tilegx/mul-tables.cc: ...here. * config/tilegx/tilegx-c.c: Moved to... * config/tilegx/tilegx-c.cc: ...here. * config/tilegx/tilegx.c: Moved to... * config/tilegx/tilegx.cc: ...here. * config/tilepro/mul-tables.c: Moved to... * config/tilepro/mul-tables.cc: ...here. * config/tilepro/tilepro-c.c: Moved to... * config/tilepro/tilepro-c.cc: ...here. * config/tilepro/tilepro.c: Moved to... * config/tilepro/tilepro.cc: ...here. * config/v850/v850-c.c: Moved to... * config/v850/v850-c.cc: ...here. * config/v850/v850.c: Moved to... * config/v850/v850.cc: ...here. * config/vax/vax.c: Moved to... * config/vax/vax.cc: ...here. * config/visium/visium.c: Moved to... * config/visium/visium.cc: ...here. * config/vms/vms-c.c: Moved to... * config/vms/vms-c.cc: ...here. * config/vms/vms-f.c: Moved to... * config/vms/vms-f.cc: ...here. * config/vms/vms.c: Moved to... * config/vms/vms.cc: ...here. * config/vxworks-c.c: Moved to... * config/vxworks-c.cc: ...here. * config/vxworks.c: Moved to... * config/vxworks.cc: ...here. * config/winnt-c.c: Moved to... * config/winnt-c.cc: ...here. * config/xtensa/xtensa.c: Moved to... * config/xtensa/xtensa.cc: ...here. * context.c: Moved to... * context.cc: ...here. * convert.c: Moved to... * convert.cc: ...here. * coverage.c: Moved to... * coverage.cc: ...here. * cppbuiltin.c: Moved to... * cppbuiltin.cc: ...here. * cppdefault.c: Moved to... * cppdefault.cc: ...here. * cprop.c: Moved to... * cprop.cc: ...here. * cse.c: Moved to... * cse.cc: ...here. * cselib.c: Moved to... * cselib.cc: ...here. * ctfc.c: Moved to... * ctfc.cc: ...here. * ctfout.c: Moved to... * ctfout.cc: ...here. * data-streamer-in.c: Moved to... * data-streamer-in.cc: ...here. * data-streamer-out.c: Moved to... * data-streamer-out.cc: ...here. * data-streamer.c: Moved to... * data-streamer.cc: ...here. * dbgcnt.c: Moved to... * dbgcnt.cc: ...here. * dbxout.c: Moved to... * dbxout.cc: ...here. * dce.c: Moved to... * dce.cc: ...here. * ddg.c: Moved to... * ddg.cc: ...here. * debug.c: Moved to... * debug.cc: ...here. * df-core.c: Moved to... * df-core.cc: ...here. * df-problems.c: Moved to... * df-problems.cc: ...here. * df-scan.c: Moved to... * df-scan.cc: ...here. * dfp.c: Moved to... * dfp.cc: ...here. * diagnostic-color.c: Moved to... * diagnostic-color.cc: ...here. * diagnostic-show-locus.c: Moved to... * diagnostic-show-locus.cc: ...here. * diagnostic-spec.c: Moved to... * diagnostic-spec.cc: ...here. * diagnostic.c: Moved to... * diagnostic.cc: ...here. * dojump.c: Moved to... * dojump.cc: ...here. * dominance.c: Moved to... * dominance.cc: ...here. * domwalk.c: Moved to... * domwalk.cc: ...here. * double-int.c: Moved to... * double-int.cc: ...here. * dse.c: Moved to... * dse.cc: ...here. * dumpfile.c: Moved to... * dumpfile.cc: ...here. * dwarf2asm.c: Moved to... * dwarf2asm.cc: ...here. * dwarf2cfi.c: Moved to... * dwarf2cfi.cc: ...here. * dwarf2ctf.c: Moved to... * dwarf2ctf.cc: ...here. * dwarf2out.c: Moved to... * dwarf2out.cc: ...here. * early-remat.c: Moved to... * early-remat.cc: ...here. * edit-context.c: Moved to... * edit-context.cc: ...here. * emit-rtl.c: Moved to... * emit-rtl.cc: ...here. * errors.c: Moved to... * errors.cc: ...here. * et-forest.c: Moved to... * et-forest.cc: ...here. * except.c: Moved to... * except.cc: ...here. * explow.c: Moved to... * explow.cc: ...here. * expmed.c: Moved to... * expmed.cc: ...here. * expr.c: Moved to... * expr.cc: ...here. * fibonacci_heap.c: Moved to... * fibonacci_heap.cc: ...here. * file-find.c: Moved to... * file-find.cc: ...here. * file-prefix-map.c: Moved to... * file-prefix-map.cc: ...here. * final.c: Moved to... * final.cc: ...here. * fixed-value.c: Moved to... * fixed-value.cc: ...here. * fold-const-call.c: Moved to... * fold-const-call.cc: ...here. * fold-const.c: Moved to... * fold-const.cc: ...here. * fp-test.c: Moved to... * fp-test.cc: ...here. * function-tests.c: Moved to... * function-tests.cc: ...here. * function.c: Moved to... * function.cc: ...here. * fwprop.c: Moved to... * fwprop.cc: ...here. * gcc-ar.c: Moved to... * gcc-ar.cc: ...here. * gcc-main.c: Moved to... * gcc-main.cc: ...here. * gcc-rich-location.c: Moved to... * gcc-rich-location.cc: ...here. * gcc.c: Moved to... * gcc.cc: ...here. * gcov-dump.c: Moved to... * gcov-dump.cc: ...here. * gcov-io.c: Moved to... * gcov-io.cc: ...here. * gcov-tool.c: Moved to... * gcov-tool.cc: ...here. * gcov.c: Moved to... * gcov.cc: ...here. * gcse-common.c: Moved to... * gcse-common.cc: ...here. * gcse.c: Moved to... * gcse.cc: ...here. * genattr-common.c: Moved to... * genattr-common.cc: ...here. * genattr.c: Moved to... * genattr.cc: ...here. * genattrtab.c: Moved to... * genattrtab.cc: ...here. * genautomata.c: Moved to... * genautomata.cc: ...here. * gencfn-macros.c: Moved to... * gencfn-macros.cc: ...here. * gencheck.c: Moved to... * gencheck.cc: ...here. * genchecksum.c: Moved to... * genchecksum.cc: ...here. * gencodes.c: Moved to... * gencodes.cc: ...here. * genconditions.c: Moved to... * genconditions.cc: ...here. * genconfig.c: Moved to... * genconfig.cc: ...here. * genconstants.c: Moved to... * genconstants.cc: ...here. * genemit.c: Moved to... * genemit.cc: ...here. * genenums.c: Moved to... * genenums.cc: ...here. * generic-match-head.c: Moved to... * generic-match-head.cc: ...here. * genextract.c: Moved to... * genextract.cc: ...here. * genflags.c: Moved to... * genflags.cc: ...here. * gengenrtl.c: Moved to... * gengenrtl.cc: ...here. * gengtype-parse.c: Moved to... * gengtype-parse.cc: ...here. * gengtype-state.c: Moved to... * gengtype-state.cc: ...here. * gengtype.c: Moved to... * gengtype.cc: ...here. * genhooks.c: Moved to... * genhooks.cc: ...here. * genmatch.c: Moved to... * genmatch.cc: ...here. * genmddeps.c: Moved to... * genmddeps.cc: ...here. * genmddump.c: Moved to... * genmddump.cc: ...here. * genmodes.c: Moved to... * genmodes.cc: ...here. * genopinit.c: Moved to... * genopinit.cc: ...here. * genoutput.c: Moved to... * genoutput.cc: ...here. * genpeep.c: Moved to... * genpeep.cc: ...here. * genpreds.c: Moved to... * genpreds.cc: ...here. * genrecog.c: Moved to... * genrecog.cc: ...here. * gensupport.c: Moved to... * gensupport.cc: ...here. * gentarget-def.c: Moved to... * gentarget-def.cc: ...here. * genversion.c: Moved to... * genversion.cc: ...here. * ggc-common.c: Moved to... * ggc-common.cc: ...here. * ggc-none.c: Moved to... * ggc-none.cc: ...here. * ggc-page.c: Moved to... * ggc-page.cc: ...here. * ggc-tests.c: Moved to... * ggc-tests.cc: ...here. * gimple-builder.c: Moved to... * gimple-builder.cc: ...here. * gimple-expr.c: Moved to... * gimple-expr.cc: ...here. * gimple-fold.c: Moved to... * gimple-fold.cc: ...here. * gimple-iterator.c: Moved to... * gimple-iterator.cc: ...here. * gimple-laddress.c: Moved to... * gimple-laddress.cc: ...here. * gimple-loop-jam.c: Moved to... * gimple-loop-jam.cc: ...here. * gimple-low.c: Moved to... * gimple-low.cc: ...here. * gimple-match-head.c: Moved to... * gimple-match-head.cc: ...here. * gimple-pretty-print.c: Moved to... * gimple-pretty-print.cc: ...here. * gimple-ssa-backprop.c: Moved to... * gimple-ssa-backprop.cc: ...here. * gimple-ssa-evrp-analyze.c: Moved to... * gimple-ssa-evrp-analyze.cc: ...here. * gimple-ssa-evrp.c: Moved to... * gimple-ssa-evrp.cc: ...here. * gimple-ssa-isolate-paths.c: Moved to... * gimple-ssa-isolate-paths.cc: ...here. * gimple-ssa-nonnull-compare.c: Moved to... * gimple-ssa-nonnull-compare.cc: ...here. * gimple-ssa-split-paths.c: Moved to... * gimple-ssa-split-paths.cc: ...here. * gimple-ssa-sprintf.c: Moved to... * gimple-ssa-sprintf.cc: ...here. * gimple-ssa-store-merging.c: Moved to... * gimple-ssa-store-merging.cc: ...here. * gimple-ssa-strength-reduction.c: Moved to... * gimple-ssa-strength-reduction.cc: ...here. * gimple-ssa-warn-alloca.c: Moved to... * gimple-ssa-warn-alloca.cc: ...here. * gimple-ssa-warn-restrict.c: Moved to... * gimple-ssa-warn-restrict.cc: ...here. * gimple-streamer-in.c: Moved to... * gimple-streamer-in.cc: ...here. * gimple-streamer-out.c: Moved to... * gimple-streamer-out.cc: ...here. * gimple-walk.c: Moved to... * gimple-walk.cc: ...here. * gimple-warn-recursion.c: Moved to... * gimple-warn-recursion.cc: ...here. * gimple.c: Moved to... * gimple.cc: ...here. * gimplify-me.c: Moved to... * gimplify-me.cc: ...here. * gimplify.c: Moved to... * gimplify.cc: ...here. * godump.c: Moved to... * godump.cc: ...here. * graph.c: Moved to... * graph.cc: ...here. * graphds.c: Moved to... * graphds.cc: ...here. * graphite-dependences.c: Moved to... * graphite-dependences.cc: ...here. * graphite-isl-ast-to-gimple.c: Moved to... * graphite-isl-ast-to-gimple.cc: ...here. * graphite-optimize-isl.c: Moved to... * graphite-optimize-isl.cc: ...here. * graphite-poly.c: Moved to... * graphite-poly.cc: ...here. * graphite-scop-detection.c: Moved to... * graphite-scop-detection.cc: ...here. * graphite-sese-to-poly.c: Moved to... * graphite-sese-to-poly.cc: ...here. * graphite.c: Moved to... * graphite.cc: ...here. * haifa-sched.c: Moved to... * haifa-sched.cc: ...here. * hash-map-tests.c: Moved to... * hash-map-tests.cc: ...here. * hash-set-tests.c: Moved to... * hash-set-tests.cc: ...here. * hash-table.c: Moved to... * hash-table.cc: ...here. * hooks.c: Moved to... * hooks.cc: ...here. * host-default.c: Moved to... * host-default.cc: ...here. * hw-doloop.c: Moved to... * hw-doloop.cc: ...here. * hwint.c: Moved to... * hwint.cc: ...here. * ifcvt.c: Moved to... * ifcvt.cc: ...here. * inchash.c: Moved to... * inchash.cc: ...here. * incpath.c: Moved to... * incpath.cc: ...here. * init-regs.c: Moved to... * init-regs.cc: ...here. * input.c: Moved to... * input.cc: ...here. * internal-fn.c: Moved to... * internal-fn.cc: ...here. * intl.c: Moved to... * intl.cc: ...here. * ipa-comdats.c: Moved to... * ipa-comdats.cc: ...here. * ipa-cp.c: Moved to... * ipa-cp.cc: ...here. * ipa-devirt.c: Moved to... * ipa-devirt.cc: ...here. * ipa-fnsummary.c: Moved to... * ipa-fnsummary.cc: ...here. * ipa-icf-gimple.c: Moved to... * ipa-icf-gimple.cc: ...here. * ipa-icf.c: Moved to... * ipa-icf.cc: ...here. * ipa-inline-analysis.c: Moved to... * ipa-inline-analysis.cc: ...here. * ipa-inline-transform.c: Moved to... * ipa-inline-transform.cc: ...here. * ipa-inline.c: Moved to... * ipa-inline.cc: ...here. * ipa-modref-tree.c: Moved to... * ipa-modref-tree.cc: ...here. * ipa-modref.c: Moved to... * ipa-modref.cc: ...here. * ipa-param-manipulation.c: Moved to... * ipa-param-manipulation.cc: ...here. * ipa-polymorphic-call.c: Moved to... * ipa-polymorphic-call.cc: ...here. * ipa-predicate.c: Moved to... * ipa-predicate.cc: ...here. * ipa-profile.c: Moved to... * ipa-profile.cc: ...here. * ipa-prop.c: Moved to... * ipa-prop.cc: ...here. * ipa-pure-const.c: Moved to... * ipa-pure-const.cc: ...here. * ipa-ref.c: Moved to... * ipa-ref.cc: ...here. * ipa-reference.c: Moved to... * ipa-reference.cc: ...here. * ipa-split.c: Moved to... * ipa-split.cc: ...here. * ipa-sra.c: Moved to... * ipa-sra.cc: ...here. * ipa-utils.c: Moved to... * ipa-utils.cc: ...here. * ipa-visibility.c: Moved to... * ipa-visibility.cc: ...here. * ipa.c: Moved to... * ipa.cc: ...here. * ira-build.c: Moved to... * ira-build.cc: ...here. * ira-color.c: Moved to... * ira-color.cc: ...here. * ira-conflicts.c: Moved to... * ira-conflicts.cc: ...here. * ira-costs.c: Moved to... * ira-costs.cc: ...here. * ira-emit.c: Moved to... * ira-emit.cc: ...here. * ira-lives.c: Moved to... * ira-lives.cc: ...here. * ira.c: Moved to... * ira.cc: ...here. * jump.c: Moved to... * jump.cc: ...here. * langhooks.c: Moved to... * langhooks.cc: ...here. * lcm.c: Moved to... * lcm.cc: ...here. * lists.c: Moved to... * lists.cc: ...here. * loop-doloop.c: Moved to... * loop-doloop.cc: ...here. * loop-init.c: Moved to... * loop-init.cc: ...here. * loop-invariant.c: Moved to... * loop-invariant.cc: ...here. * loop-iv.c: Moved to... * loop-iv.cc: ...here. * loop-unroll.c: Moved to... * loop-unroll.cc: ...here. * lower-subreg.c: Moved to... * lower-subreg.cc: ...here. * lra-assigns.c: Moved to... * lra-assigns.cc: ...here. * lra-coalesce.c: Moved to... * lra-coalesce.cc: ...here. * lra-constraints.c: Moved to... * lra-constraints.cc: ...here. * lra-eliminations.c: Moved to... * lra-eliminations.cc: ...here. * lra-lives.c: Moved to... * lra-lives.cc: ...here. * lra-remat.c: Moved to... * lra-remat.cc: ...here. * lra-spills.c: Moved to... * lra-spills.cc: ...here. * lra.c: Moved to... * lra.cc: ...here. * lto-cgraph.c: Moved to... * lto-cgraph.cc: ...here. * lto-compress.c: Moved to... * lto-compress.cc: ...here. * lto-opts.c: Moved to... * lto-opts.cc: ...here. * lto-section-in.c: Moved to... * lto-section-in.cc: ...here. * lto-section-out.c: Moved to... * lto-section-out.cc: ...here. * lto-streamer-in.c: Moved to... * lto-streamer-in.cc: ...here. * lto-streamer-out.c: Moved to... * lto-streamer-out.cc: ...here. * lto-streamer.c: Moved to... * lto-streamer.cc: ...here. * lto-wrapper.c: Moved to... * lto-wrapper.cc: ...here. * main.c: Moved to... * main.cc: ...here. * mcf.c: Moved to... * mcf.cc: ...here. * mode-switching.c: Moved to... * mode-switching.cc: ...here. * modulo-sched.c: Moved to... * modulo-sched.cc: ...here. * multiple_target.c: Moved to... * multiple_target.cc: ...here. * omp-expand.c: Moved to... * omp-expand.cc: ...here. * omp-general.c: Moved to... * omp-general.cc: ...here. * omp-low.c: Moved to... * omp-low.cc: ...here. * omp-offload.c: Moved to... * omp-offload.cc: ...here. * omp-simd-clone.c: Moved to... * omp-simd-clone.cc: ...here. * opt-suggestions.c: Moved to... * opt-suggestions.cc: ...here. * optabs-libfuncs.c: Moved to... * optabs-libfuncs.cc: ...here. * optabs-query.c: Moved to... * optabs-query.cc: ...here. * optabs-tree.c: Moved to... * optabs-tree.cc: ...here. * optabs.c: Moved to... * optabs.cc: ...here. * opts-common.c: Moved to... * opts-common.cc: ...here. * opts-global.c: Moved to... * opts-global.cc: ...here. * opts.c: Moved to... * opts.cc: ...here. * passes.c: Moved to... * passes.cc: ...here. * plugin.c: Moved to... * plugin.cc: ...here. * postreload-gcse.c: Moved to... * postreload-gcse.cc: ...here. * postreload.c: Moved to... * postreload.cc: ...here. * predict.c: Moved to... * predict.cc: ...here. * prefix.c: Moved to... * prefix.cc: ...here. * pretty-print.c: Moved to... * pretty-print.cc: ...here. * print-rtl-function.c: Moved to... * print-rtl-function.cc: ...here. * print-rtl.c: Moved to... * print-rtl.cc: ...here. * print-tree.c: Moved to... * print-tree.cc: ...here. * profile-count.c: Moved to... * profile-count.cc: ...here. * profile.c: Moved to... * profile.cc: ...here. * read-md.c: Moved to... * read-md.cc: ...here. * read-rtl-function.c: Moved to... * read-rtl-function.cc: ...here. * read-rtl.c: Moved to... * read-rtl.cc: ...here. * real.c: Moved to... * real.cc: ...here. * realmpfr.c: Moved to... * realmpfr.cc: ...here. * recog.c: Moved to... * recog.cc: ...here. * ree.c: Moved to... * ree.cc: ...here. * reg-stack.c: Moved to... * reg-stack.cc: ...here. * regcprop.c: Moved to... * regcprop.cc: ...here. * reginfo.c: Moved to... * reginfo.cc: ...here. * regrename.c: Moved to... * regrename.cc: ...here. * regstat.c: Moved to... * regstat.cc: ...here. * reload.c: Moved to... * reload.cc: ...here. * reload1.c: Moved to... * reload1.cc: ...here. * reorg.c: Moved to... * reorg.cc: ...here. * resource.c: Moved to... * resource.cc: ...here. * rtl-error.c: Moved to... * rtl-error.cc: ...here. * rtl-tests.c: Moved to... * rtl-tests.cc: ...here. * rtl.c: Moved to... * rtl.cc: ...here. * rtlanal.c: Moved to... * rtlanal.cc: ...here. * rtlhash.c: Moved to... * rtlhash.cc: ...here. * rtlhooks.c: Moved to... * rtlhooks.cc: ...here. * rtx-vector-builder.c: Moved to... * rtx-vector-builder.cc: ...here. * run-rtl-passes.c: Moved to... * run-rtl-passes.cc: ...here. * sancov.c: Moved to... * sancov.cc: ...here. * sanopt.c: Moved to... * sanopt.cc: ...here. * sbitmap.c: Moved to... * sbitmap.cc: ...here. * sched-deps.c: Moved to... * sched-deps.cc: ...here. * sched-ebb.c: Moved to... * sched-ebb.cc: ...here. * sched-rgn.c: Moved to... * sched-rgn.cc: ...here. * sel-sched-dump.c: Moved to... * sel-sched-dump.cc: ...here. * sel-sched-ir.c: Moved to... * sel-sched-ir.cc: ...here. * sel-sched.c: Moved to... * sel-sched.cc: ...here. * selftest-diagnostic.c: Moved to... * selftest-diagnostic.cc: ...here. * selftest-rtl.c: Moved to... * selftest-rtl.cc: ...here. * selftest-run-tests.c: Moved to... * selftest-run-tests.cc: ...here. * selftest.c: Moved to... * selftest.cc: ...here. * sese.c: Moved to... * sese.cc: ...here. * shrink-wrap.c: Moved to... * shrink-wrap.cc: ...here. * simplify-rtx.c: Moved to... * simplify-rtx.cc: ...here. * sparseset.c: Moved to... * sparseset.cc: ...here. * spellcheck-tree.c: Moved to... * spellcheck-tree.cc: ...here. * spellcheck.c: Moved to... * spellcheck.cc: ...here. * sreal.c: Moved to... * sreal.cc: ...here. * stack-ptr-mod.c: Moved to... * stack-ptr-mod.cc: ...here. * statistics.c: Moved to... * statistics.cc: ...here. * stmt.c: Moved to... * stmt.cc: ...here. * stor-layout.c: Moved to... * stor-layout.cc: ...here. * store-motion.c: Moved to... * store-motion.cc: ...here. * streamer-hooks.c: Moved to... * streamer-hooks.cc: ...here. * stringpool.c: Moved to... * stringpool.cc: ...here. * substring-locations.c: Moved to... * substring-locations.cc: ...here. * symtab.c: Moved to... * symtab.cc: ...here. * target-globals.c: Moved to... * target-globals.cc: ...here. * targhooks.c: Moved to... * targhooks.cc: ...here. * timevar.c: Moved to... * timevar.cc: ...here. * toplev.c: Moved to... * toplev.cc: ...here. * tracer.c: Moved to... * tracer.cc: ...here. * trans-mem.c: Moved to... * trans-mem.cc: ...here. * tree-affine.c: Moved to... * tree-affine.cc: ...here. * tree-call-cdce.c: Moved to... * tree-call-cdce.cc: ...here. * tree-cfg.c: Moved to... * tree-cfg.cc: ...here. * tree-cfgcleanup.c: Moved to... * tree-cfgcleanup.cc: ...here. * tree-chrec.c: Moved to... * tree-chrec.cc: ...here. * tree-complex.c: Moved to... * tree-complex.cc: ...here. * tree-data-ref.c: Moved to... * tree-data-ref.cc: ...here. * tree-dfa.c: Moved to... * tree-dfa.cc: ...here. * tree-diagnostic.c: Moved to... * tree-diagnostic.cc: ...here. * tree-dump.c: Moved to... * tree-dump.cc: ...here. * tree-eh.c: Moved to... * tree-eh.cc: ...here. * tree-emutls.c: Moved to... * tree-emutls.cc: ...here. * tree-if-conv.c: Moved to... * tree-if-conv.cc: ...here. * tree-inline.c: Moved to... * tree-inline.cc: ...here. * tree-into-ssa.c: Moved to... * tree-into-ssa.cc: ...here. * tree-iterator.c: Moved to... * tree-iterator.cc: ...here. * tree-loop-distribution.c: Moved to... * tree-loop-distribution.cc: ...here. * tree-nested.c: Moved to... * tree-nested.cc: ...here. * tree-nrv.c: Moved to... * tree-nrv.cc: ...here. * tree-object-size.c: Moved to... * tree-object-size.cc: ...here. * tree-outof-ssa.c: Moved to... * tree-outof-ssa.cc: ...here. * tree-parloops.c: Moved to... * tree-parloops.cc: ...here. * tree-phinodes.c: Moved to... * tree-phinodes.cc: ...here. * tree-predcom.c: Moved to... * tree-predcom.cc: ...here. * tree-pretty-print.c: Moved to... * tree-pretty-print.cc: ...here. * tree-profile.c: Moved to... * tree-profile.cc: ...here. * tree-scalar-evolution.c: Moved to... * tree-scalar-evolution.cc: ...here. * tree-sra.c: Moved to... * tree-sra.cc: ...here. * tree-ssa-address.c: Moved to... * tree-ssa-address.cc: ...here. * tree-ssa-alias.c: Moved to... * tree-ssa-alias.cc: ...here. * tree-ssa-ccp.c: Moved to... * tree-ssa-ccp.cc: ...here. * tree-ssa-coalesce.c: Moved to... * tree-ssa-coalesce.cc: ...here. * tree-ssa-copy.c: Moved to... * tree-ssa-copy.cc: ...here. * tree-ssa-dce.c: Moved to... * tree-ssa-dce.cc: ...here. * tree-ssa-dom.c: Moved to... * tree-ssa-dom.cc: ...here. * tree-ssa-dse.c: Moved to... * tree-ssa-dse.cc: ...here. * tree-ssa-forwprop.c: Moved to... * tree-ssa-forwprop.cc: ...here. * tree-ssa-ifcombine.c: Moved to... * tree-ssa-ifcombine.cc: ...here. * tree-ssa-live.c: Moved to... * tree-ssa-live.cc: ...here. * tree-ssa-loop-ch.c: Moved to... * tree-ssa-loop-ch.cc: ...here. * tree-ssa-loop-im.c: Moved to... * tree-ssa-loop-im.cc: ...here. * tree-ssa-loop-ivcanon.c: Moved to... * tree-ssa-loop-ivcanon.cc: ...here. * tree-ssa-loop-ivopts.c: Moved to... * tree-ssa-loop-ivopts.cc: ...here. * tree-ssa-loop-manip.c: Moved to... * tree-ssa-loop-manip.cc: ...here. * tree-ssa-loop-niter.c: Moved to... * tree-ssa-loop-niter.cc: ...here. * tree-ssa-loop-prefetch.c: Moved to... * tree-ssa-loop-prefetch.cc: ...here. * tree-ssa-loop-split.c: Moved to... * tree-ssa-loop-split.cc: ...here. * tree-ssa-loop-unswitch.c: Moved to... * tree-ssa-loop-unswitch.cc: ...here. * tree-ssa-loop.c: Moved to... * tree-ssa-loop.cc: ...here. * tree-ssa-math-opts.c: Moved to... * tree-ssa-math-opts.cc: ...here. * tree-ssa-operands.c: Moved to... * tree-ssa-operands.cc: ...here. * tree-ssa-phiopt.c: Moved to... * tree-ssa-phiopt.cc: ...here. * tree-ssa-phiprop.c: Moved to... * tree-ssa-phiprop.cc: ...here. * tree-ssa-pre.c: Moved to... * tree-ssa-pre.cc: ...here. * tree-ssa-propagate.c: Moved to... * tree-ssa-propagate.cc: ...here. * tree-ssa-reassoc.c: Moved to... * tree-ssa-reassoc.cc: ...here. * tree-ssa-sccvn.c: Moved to... * tree-ssa-sccvn.cc: ...here. * tree-ssa-scopedtables.c: Moved to... * tree-ssa-scopedtables.cc: ...here. * tree-ssa-sink.c: Moved to... * tree-ssa-sink.cc: ...here. * tree-ssa-strlen.c: Moved to... * tree-ssa-strlen.cc: ...here. * tree-ssa-structalias.c: Moved to... * tree-ssa-structalias.cc: ...here. * tree-ssa-tail-merge.c: Moved to... * tree-ssa-tail-merge.cc: ...here. * tree-ssa-ter.c: Moved to... * tree-ssa-ter.cc: ...here. * tree-ssa-threadbackward.c: Moved to... * tree-ssa-threadbackward.cc: ...here. * tree-ssa-threadedge.c: Moved to... * tree-ssa-threadedge.cc: ...here. * tree-ssa-threadupdate.c: Moved to... * tree-ssa-threadupdate.cc: ...here. * tree-ssa-uncprop.c: Moved to... * tree-ssa-uncprop.cc: ...here. * tree-ssa-uninit.c: Moved to... * tree-ssa-uninit.cc: ...here. * tree-ssa.c: Moved to... * tree-ssa.cc: ...here. * tree-ssanames.c: Moved to... * tree-ssanames.cc: ...here. * tree-stdarg.c: Moved to... * tree-stdarg.cc: ...here. * tree-streamer-in.c: Moved to... * tree-streamer-in.cc: ...here. * tree-streamer-out.c: Moved to... * tree-streamer-out.cc: ...here. * tree-streamer.c: Moved to... * tree-streamer.cc: ...here. * tree-switch-conversion.c: Moved to... * tree-switch-conversion.cc: ...here. * tree-tailcall.c: Moved to... * tree-tailcall.cc: ...here. * tree-vect-data-refs.c: Moved to... * tree-vect-data-refs.cc: ...here. * tree-vect-generic.c: Moved to... * tree-vect-generic.cc: ...here. * tree-vect-loop-manip.c: Moved to... * tree-vect-loop-manip.cc: ...here. * tree-vect-loop.c: Moved to... * tree-vect-loop.cc: ...here. * tree-vect-patterns.c: Moved to... * tree-vect-patterns.cc: ...here. * tree-vect-slp-patterns.c: Moved to... * tree-vect-slp-patterns.cc: ...here. * tree-vect-slp.c: Moved to... * tree-vect-slp.cc: ...here. * tree-vect-stmts.c: Moved to... * tree-vect-stmts.cc: ...here. * tree-vector-builder.c: Moved to... * tree-vector-builder.cc: ...here. * tree-vectorizer.c: Moved to... * tree-vectorizer.cc: ...here. * tree-vrp.c: Moved to... * tree-vrp.cc: ...here. * tree.c: Moved to... * tree.cc: ...here. * tsan.c: Moved to... * tsan.cc: ...here. * typed-splay-tree.c: Moved to... * typed-splay-tree.cc: ...here. * ubsan.c: Moved to... * ubsan.cc: ...here. * valtrack.c: Moved to... * valtrack.cc: ...here. * value-prof.c: Moved to... * value-prof.cc: ...here. * var-tracking.c: Moved to... * var-tracking.cc: ...here. * varasm.c: Moved to... * varasm.cc: ...here. * varpool.c: Moved to... * varpool.cc: ...here. * vec-perm-indices.c: Moved to... * vec-perm-indices.cc: ...here. * vec.c: Moved to... * vec.cc: ...here. * vmsdbgout.c: Moved to... * vmsdbgout.cc: ...here. * vr-values.c: Moved to... * vr-values.cc: ...here. * vtable-verify.c: Moved to... * vtable-verify.cc: ...here. * web.c: Moved to... * web.cc: ...here. * xcoffout.c: Moved to... * xcoffout.cc: ...here. gcc/c-family/ChangeLog: * c-ada-spec.c: Moved to... * c-ada-spec.cc: ...here. * c-attribs.c: Moved to... * c-attribs.cc: ...here. * c-common.c: Moved to... * c-common.cc: ...here. * c-cppbuiltin.c: Moved to... * c-cppbuiltin.cc: ...here. * c-dump.c: Moved to... * c-dump.cc: ...here. * c-format.c: Moved to... * c-format.cc: ...here. * c-gimplify.c: Moved to... * c-gimplify.cc: ...here. * c-indentation.c: Moved to... * c-indentation.cc: ...here. * c-lex.c: Moved to... * c-lex.cc: ...here. * c-omp.c: Moved to... * c-omp.cc: ...here. * c-opts.c: Moved to... * c-opts.cc: ...here. * c-pch.c: Moved to... * c-pch.cc: ...here. * c-ppoutput.c: Moved to... * c-ppoutput.cc: ...here. * c-pragma.c: Moved to... * c-pragma.cc: ...here. * c-pretty-print.c: Moved to... * c-pretty-print.cc: ...here. * c-semantics.c: Moved to... * c-semantics.cc: ...here. * c-ubsan.c: Moved to... * c-ubsan.cc: ...here. * c-warn.c: Moved to... * c-warn.cc: ...here. * cppspec.c: Moved to... * cppspec.cc: ...here. * stub-objc.c: Moved to... * stub-objc.cc: ...here. gcc/c/ChangeLog: * c-aux-info.c: Moved to... * c-aux-info.cc: ...here. * c-convert.c: Moved to... * c-convert.cc: ...here. * c-decl.c: Moved to... * c-decl.cc: ...here. * c-errors.c: Moved to... * c-errors.cc: ...here. * c-fold.c: Moved to... * c-fold.cc: ...here. * c-lang.c: Moved to... * c-lang.cc: ...here. * c-objc-common.c: Moved to... * c-objc-common.cc: ...here. * c-parser.c: Moved to... * c-parser.cc: ...here. * c-typeck.c: Moved to... * c-typeck.cc: ...here. * gccspec.c: Moved to... * gccspec.cc: ...here. * gimple-parser.c: Moved to... * gimple-parser.cc: ...here. gcc/cp/ChangeLog: * call.c: Moved to... * call.cc: ...here. * class.c: Moved to... * class.cc: ...here. * constexpr.c: Moved to... * constexpr.cc: ...here. * cp-gimplify.c: Moved to... * cp-gimplify.cc: ...here. * cp-lang.c: Moved to... * cp-lang.cc: ...here. * cp-objcp-common.c: Moved to... * cp-objcp-common.cc: ...here. * cp-ubsan.c: Moved to... * cp-ubsan.cc: ...here. * cvt.c: Moved to... * cvt.cc: ...here. * cxx-pretty-print.c: Moved to... * cxx-pretty-print.cc: ...here. * decl.c: Moved to... * decl.cc: ...here. * decl2.c: Moved to... * decl2.cc: ...here. * dump.c: Moved to... * dump.cc: ...here. * error.c: Moved to... * error.cc: ...here. * except.c: Moved to... * except.cc: ...here. * expr.c: Moved to... * expr.cc: ...here. * friend.c: Moved to... * friend.cc: ...here. * g++spec.c: Moved to... * g++spec.cc: ...here. * init.c: Moved to... * init.cc: ...here. * lambda.c: Moved to... * lambda.cc: ...here. * lex.c: Moved to... * lex.cc: ...here. * mangle.c: Moved to... * mangle.cc: ...here. * method.c: Moved to... * method.cc: ...here. * name-lookup.c: Moved to... * name-lookup.cc: ...here. * optimize.c: Moved to... * optimize.cc: ...here. * parser.c: Moved to... * parser.cc: ...here. * pt.c: Moved to... * pt.cc: ...here. * ptree.c: Moved to... * ptree.cc: ...here. * rtti.c: Moved to... * rtti.cc: ...here. * search.c: Moved to... * search.cc: ...here. * semantics.c: Moved to... * semantics.cc: ...here. * tree.c: Moved to... * tree.cc: ...here. * typeck.c: Moved to... * typeck.cc: ...here. * typeck2.c: Moved to... * typeck2.cc: ...here. * vtable-class-hierarchy.c: Moved to... * vtable-class-hierarchy.cc: ...here. gcc/fortran/ChangeLog: * arith.c: Moved to... * arith.cc: ...here. * array.c: Moved to... * array.cc: ...here. * bbt.c: Moved to... * bbt.cc: ...here. * check.c: Moved to... * check.cc: ...here. * class.c: Moved to... * class.cc: ...here. * constructor.c: Moved to... * constructor.cc: ...here. * convert.c: Moved to... * convert.cc: ...here. * cpp.c: Moved to... * cpp.cc: ...here. * data.c: Moved to... * data.cc: ...here. * decl.c: Moved to... * decl.cc: ...here. * dependency.c: Moved to... * dependency.cc: ...here. * dump-parse-tree.c: Moved to... * dump-parse-tree.cc: ...here. * error.c: Moved to... * error.cc: ...here. * expr.c: Moved to... * expr.cc: ...here. * f95-lang.c: Moved to... * f95-lang.cc: ...here. * frontend-passes.c: Moved to... * frontend-passes.cc: ...here. * gfortranspec.c: Moved to... * gfortranspec.cc: ...here. * interface.c: Moved to... * interface.cc: ...here. * intrinsic.c: Moved to... * intrinsic.cc: ...here. * io.c: Moved to... * io.cc: ...here. * iresolve.c: Moved to... * iresolve.cc: ...here. * match.c: Moved to... * match.cc: ...here. * matchexp.c: Moved to... * matchexp.cc: ...here. * misc.c: Moved to... * misc.cc: ...here. * module.c: Moved to... * module.cc: ...here. * openmp.c: Moved to... * openmp.cc: ...here. * options.c: Moved to... * options.cc: ...here. * parse.c: Moved to... * parse.cc: ...here. * primary.c: Moved to... * primary.cc: ...here. * resolve.c: Moved to... * resolve.cc: ...here. * scanner.c: Moved to... * scanner.cc: ...here. * simplify.c: Moved to... * simplify.cc: ...here. * st.c: Moved to... * st.cc: ...here. * symbol.c: Moved to... * symbol.cc: ...here. * target-memory.c: Moved to... * target-memory.cc: ...here. * trans-array.c: Moved to... * trans-array.cc: ...here. * trans-common.c: Moved to... * trans-common.cc: ...here. * trans-const.c: Moved to... * trans-const.cc: ...here. * trans-decl.c: Moved to... * trans-decl.cc: ...here. * trans-expr.c: Moved to... * trans-expr.cc: ...here. * trans-intrinsic.c: Moved to... * trans-intrinsic.cc: ...here. * trans-io.c: Moved to... * trans-io.cc: ...here. * trans-openmp.c: Moved to... * trans-openmp.cc: ...here. * trans-stmt.c: Moved to... * trans-stmt.cc: ...here. * trans-types.c: Moved to... * trans-types.cc: ...here. * trans.c: Moved to... * trans.cc: ...here. gcc/go/ChangeLog: * go-backend.c: Moved to... * go-backend.cc: ...here. * go-lang.c: Moved to... * go-lang.cc: ...here. * gospec.c: Moved to... * gospec.cc: ...here. gcc/jit/ChangeLog: * dummy-frontend.c: Moved to... * dummy-frontend.cc: ...here. * jit-builtins.c: Moved to... * jit-builtins.cc: ...here. * jit-logging.c: Moved to... * jit-logging.cc: ...here. * jit-playback.c: Moved to... * jit-playback.cc: ...here. * jit-recording.c: Moved to... * jit-recording.cc: ...here. * jit-result.c: Moved to... * jit-result.cc: ...here. * jit-spec.c: Moved to... * jit-spec.cc: ...here. * jit-tempdir.c: Moved to... * jit-tempdir.cc: ...here. * jit-w32.c: Moved to... * jit-w32.cc: ...here. * libgccjit.c: Moved to... * libgccjit.cc: ...here. gcc/lto/ChangeLog: * common.c: Moved to... * common.cc: ...here. * lto-common.c: Moved to... * lto-common.cc: ...here. * lto-dump.c: Moved to... * lto-dump.cc: ...here. * lto-lang.c: Moved to... * lto-lang.cc: ...here. * lto-object.c: Moved to... * lto-object.cc: ...here. * lto-partition.c: Moved to... * lto-partition.cc: ...here. * lto-symtab.c: Moved to... * lto-symtab.cc: ...here. * lto.c: Moved to... * lto.cc: ...here. gcc/objc/ChangeLog: * objc-act.c: Moved to... * objc-act.cc: ...here. * objc-encoding.c: Moved to... * objc-encoding.cc: ...here. * objc-gnu-runtime-abi-01.c: Moved to... * objc-gnu-runtime-abi-01.cc: ...here. * objc-lang.c: Moved to... * objc-lang.cc: ...here. * objc-map.c: Moved to... * objc-map.cc: ...here. * objc-next-runtime-abi-01.c: Moved to... * objc-next-runtime-abi-01.cc: ...here. * objc-next-runtime-abi-02.c: Moved to... * objc-next-runtime-abi-02.cc: ...here. * objc-runtime-shared-support.c: Moved to... * objc-runtime-shared-support.cc: ...here. gcc/objcp/ChangeLog: * objcp-decl.c: Moved to... * objcp-decl.cc: ...here. * objcp-lang.c: Moved to... * objcp-lang.cc: ...here. libcpp/ChangeLog: * charset.c: Moved to... * charset.cc: ...here. * directives.c: Moved to... * directives.cc: ...here. * errors.c: Moved to... * errors.cc: ...here. * expr.c: Moved to... * expr.cc: ...here. * files.c: Moved to... * files.cc: ...here. * identifiers.c: Moved to... * identifiers.cc: ...here. * init.c: Moved to... * init.cc: ...here. * lex.c: Moved to... * lex.cc: ...here. * line-map.c: Moved to... * line-map.cc: ...here. * macro.c: Moved to... * macro.cc: ...here. * makeucnid.c: Moved to... * makeucnid.cc: ...here. * mkdeps.c: Moved to... * mkdeps.cc: ...here. * pch.c: Moved to... * pch.cc: ...here. * symtab.c: Moved to... * symtab.cc: ...here. * traditional.c: Moved to... * traditional.cc: ...here.
Diffstat (limited to 'gcc/tree-vectorizer.c')
-rw-r--r--gcc/tree-vectorizer.c2026
1 files changed, 0 insertions, 2026 deletions
diff --git a/gcc/tree-vectorizer.c b/gcc/tree-vectorizer.c
deleted file mode 100644
index 48eed40..0000000
--- a/gcc/tree-vectorizer.c
+++ /dev/null
@@ -1,2026 +0,0 @@
-/* Vectorizer
- Copyright (C) 2003-2022 Free Software Foundation, Inc.
- Contributed by Dorit Naishlos <dorit@il.ibm.com>
-
-This file is part of GCC.
-
-GCC is free software; you can redistribute it and/or modify it under
-the terms of the GNU General Public License as published by the Free
-Software Foundation; either version 3, or (at your option) any later
-version.
-
-GCC is distributed in the hope that it will be useful, but WITHOUT ANY
-WARRANTY; without even the implied warranty of MERCHANTABILITY or
-FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
-for more details.
-
-You should have received a copy of the GNU General Public License
-along with GCC; see the file COPYING3. If not see
-<http://www.gnu.org/licenses/>. */
-
-/* Loop and basic block vectorizer.
-
- This file contains drivers for the three vectorizers:
- (1) loop vectorizer (inter-iteration parallelism),
- (2) loop-aware SLP (intra-iteration parallelism) (invoked by the loop
- vectorizer)
- (3) BB vectorizer (out-of-loops), aka SLP
-
- The rest of the vectorizer's code is organized as follows:
- - tree-vect-loop.c - loop specific parts such as reductions, etc. These are
- used by drivers (1) and (2).
- - tree-vect-loop-manip.c - vectorizer's loop control-flow utilities, used by
- drivers (1) and (2).
- - tree-vect-slp.c - BB vectorization specific analysis and transformation,
- used by drivers (2) and (3).
- - tree-vect-stmts.c - statements analysis and transformation (used by all).
- - tree-vect-data-refs.c - vectorizer specific data-refs analysis and
- manipulations (used by all).
- - tree-vect-patterns.c - vectorizable code patterns detector (used by all)
-
- Here's a poor attempt at illustrating that:
-
- tree-vectorizer.c:
- loop_vect() loop_aware_slp() slp_vect()
- | / \ /
- | / \ /
- tree-vect-loop.c tree-vect-slp.c
- | \ \ / / |
- | \ \/ / |
- | \ /\ / |
- | \ / \ / |
- tree-vect-stmts.c tree-vect-data-refs.c
- \ /
- tree-vect-patterns.c
-*/
-
-#include "config.h"
-#include "system.h"
-#include "coretypes.h"
-#include "backend.h"
-#include "tree.h"
-#include "gimple.h"
-#include "predict.h"
-#include "tree-pass.h"
-#include "ssa.h"
-#include "cgraph.h"
-#include "fold-const.h"
-#include "stor-layout.h"
-#include "gimple-iterator.h"
-#include "gimple-walk.h"
-#include "tree-ssa-loop-manip.h"
-#include "tree-ssa-loop-niter.h"
-#include "tree-cfg.h"
-#include "cfgloop.h"
-#include "tree-vectorizer.h"
-#include "tree-ssa-propagate.h"
-#include "dbgcnt.h"
-#include "tree-scalar-evolution.h"
-#include "stringpool.h"
-#include "attribs.h"
-#include "gimple-pretty-print.h"
-#include "opt-problem.h"
-#include "internal-fn.h"
-#include "tree-ssa-sccvn.h"
-
-/* Loop or bb location, with hotness information. */
-dump_user_location_t vect_location;
-
-/* auto_purge_vect_location's dtor: reset the vect_location
- global, to avoid stale location_t values that could reference
- GC-ed blocks. */
-
-auto_purge_vect_location::~auto_purge_vect_location ()
-{
- vect_location = dump_user_location_t ();
-}
-
-/* Dump a cost entry according to args to F. */
-
-void
-dump_stmt_cost (FILE *f, int count, enum vect_cost_for_stmt kind,
- stmt_vec_info stmt_info, tree, int misalign, unsigned cost,
- enum vect_cost_model_location where)
-{
- if (stmt_info)
- {
- print_gimple_expr (f, STMT_VINFO_STMT (stmt_info), 0, TDF_SLIM);
- fprintf (f, " ");
- }
- else
- fprintf (f, "<unknown> ");
- fprintf (f, "%d times ", count);
- const char *ks = "unknown";
- switch (kind)
- {
- case scalar_stmt:
- ks = "scalar_stmt";
- break;
- case scalar_load:
- ks = "scalar_load";
- break;
- case scalar_store:
- ks = "scalar_store";
- break;
- case vector_stmt:
- ks = "vector_stmt";
- break;
- case vector_load:
- ks = "vector_load";
- break;
- case vector_gather_load:
- ks = "vector_gather_load";
- break;
- case unaligned_load:
- ks = "unaligned_load";
- break;
- case unaligned_store:
- ks = "unaligned_store";
- break;
- case vector_store:
- ks = "vector_store";
- break;
- case vector_scatter_store:
- ks = "vector_scatter_store";
- break;
- case vec_to_scalar:
- ks = "vec_to_scalar";
- break;
- case scalar_to_vec:
- ks = "scalar_to_vec";
- break;
- case cond_branch_not_taken:
- ks = "cond_branch_not_taken";
- break;
- case cond_branch_taken:
- ks = "cond_branch_taken";
- break;
- case vec_perm:
- ks = "vec_perm";
- break;
- case vec_promote_demote:
- ks = "vec_promote_demote";
- break;
- case vec_construct:
- ks = "vec_construct";
- break;
- }
- fprintf (f, "%s ", ks);
- if (kind == unaligned_load || kind == unaligned_store)
- fprintf (f, "(misalign %d) ", misalign);
- fprintf (f, "costs %u ", cost);
- const char *ws = "unknown";
- switch (where)
- {
- case vect_prologue:
- ws = "prologue";
- break;
- case vect_body:
- ws = "body";
- break;
- case vect_epilogue:
- ws = "epilogue";
- break;
- }
- fprintf (f, "in %s\n", ws);
-}
-
-/* For mapping simduid to vectorization factor. */
-
-class simduid_to_vf : public free_ptr_hash<simduid_to_vf>
-{
-public:
- unsigned int simduid;
- poly_uint64 vf;
-
- /* hash_table support. */
- static inline hashval_t hash (const simduid_to_vf *);
- static inline int equal (const simduid_to_vf *, const simduid_to_vf *);
-};
-
-inline hashval_t
-simduid_to_vf::hash (const simduid_to_vf *p)
-{
- return p->simduid;
-}
-
-inline int
-simduid_to_vf::equal (const simduid_to_vf *p1, const simduid_to_vf *p2)
-{
- return p1->simduid == p2->simduid;
-}
-
-/* This hash maps the OMP simd array to the corresponding simduid used
- to index into it. Like thus,
-
- _7 = GOMP_SIMD_LANE (simduid.0)
- ...
- ...
- D.1737[_7] = stuff;
-
-
- This hash maps from the OMP simd array (D.1737[]) to DECL_UID of
- simduid.0. */
-
-struct simd_array_to_simduid : free_ptr_hash<simd_array_to_simduid>
-{
- tree decl;
- unsigned int simduid;
-
- /* hash_table support. */
- static inline hashval_t hash (const simd_array_to_simduid *);
- static inline int equal (const simd_array_to_simduid *,
- const simd_array_to_simduid *);
-};
-
-inline hashval_t
-simd_array_to_simduid::hash (const simd_array_to_simduid *p)
-{
- return DECL_UID (p->decl);
-}
-
-inline int
-simd_array_to_simduid::equal (const simd_array_to_simduid *p1,
- const simd_array_to_simduid *p2)
-{
- return p1->decl == p2->decl;
-}
-
-/* Fold IFN_GOMP_SIMD_LANE, IFN_GOMP_SIMD_VF, IFN_GOMP_SIMD_LAST_LANE,
- into their corresponding constants and remove
- IFN_GOMP_SIMD_ORDERED_{START,END}. */
-
-static void
-adjust_simduid_builtins (hash_table<simduid_to_vf> *htab, function *fun)
-{
- basic_block bb;
-
- FOR_EACH_BB_FN (bb, fun)
- {
- gimple_stmt_iterator i;
-
- for (i = gsi_start_bb (bb); !gsi_end_p (i); )
- {
- poly_uint64 vf = 1;
- enum internal_fn ifn;
- gimple *stmt = gsi_stmt (i);
- tree t;
- if (!is_gimple_call (stmt)
- || !gimple_call_internal_p (stmt))
- {
- gsi_next (&i);
- continue;
- }
- ifn = gimple_call_internal_fn (stmt);
- switch (ifn)
- {
- case IFN_GOMP_SIMD_LANE:
- case IFN_GOMP_SIMD_VF:
- case IFN_GOMP_SIMD_LAST_LANE:
- break;
- case IFN_GOMP_SIMD_ORDERED_START:
- case IFN_GOMP_SIMD_ORDERED_END:
- if (integer_onep (gimple_call_arg (stmt, 0)))
- {
- enum built_in_function bcode
- = (ifn == IFN_GOMP_SIMD_ORDERED_START
- ? BUILT_IN_GOMP_ORDERED_START
- : BUILT_IN_GOMP_ORDERED_END);
- gimple *g
- = gimple_build_call (builtin_decl_explicit (bcode), 0);
- gimple_move_vops (g, stmt);
- gsi_replace (&i, g, true);
- continue;
- }
- gsi_remove (&i, true);
- unlink_stmt_vdef (stmt);
- continue;
- default:
- gsi_next (&i);
- continue;
- }
- tree arg = gimple_call_arg (stmt, 0);
- gcc_assert (arg != NULL_TREE);
- gcc_assert (TREE_CODE (arg) == SSA_NAME);
- simduid_to_vf *p = NULL, data;
- data.simduid = DECL_UID (SSA_NAME_VAR (arg));
- /* Need to nullify loop safelen field since it's value is not
- valid after transformation. */
- if (bb->loop_father && bb->loop_father->safelen > 0)
- bb->loop_father->safelen = 0;
- if (htab)
- {
- p = htab->find (&data);
- if (p)
- vf = p->vf;
- }
- switch (ifn)
- {
- case IFN_GOMP_SIMD_VF:
- t = build_int_cst (unsigned_type_node, vf);
- break;
- case IFN_GOMP_SIMD_LANE:
- t = build_int_cst (unsigned_type_node, 0);
- break;
- case IFN_GOMP_SIMD_LAST_LANE:
- t = gimple_call_arg (stmt, 1);
- break;
- default:
- gcc_unreachable ();
- }
- tree lhs = gimple_call_lhs (stmt);
- if (lhs)
- replace_uses_by (lhs, t);
- release_defs (stmt);
- gsi_remove (&i, true);
- }
- }
-}
-
-/* Helper structure for note_simd_array_uses. */
-
-struct note_simd_array_uses_struct
-{
- hash_table<simd_array_to_simduid> **htab;
- unsigned int simduid;
-};
-
-/* Callback for note_simd_array_uses, called through walk_gimple_op. */
-
-static tree
-note_simd_array_uses_cb (tree *tp, int *walk_subtrees, void *data)
-{
- struct walk_stmt_info *wi = (struct walk_stmt_info *) data;
- struct note_simd_array_uses_struct *ns
- = (struct note_simd_array_uses_struct *) wi->info;
-
- if (TYPE_P (*tp))
- *walk_subtrees = 0;
- else if (VAR_P (*tp)
- && lookup_attribute ("omp simd array", DECL_ATTRIBUTES (*tp))
- && DECL_CONTEXT (*tp) == current_function_decl)
- {
- simd_array_to_simduid data;
- if (!*ns->htab)
- *ns->htab = new hash_table<simd_array_to_simduid> (15);
- data.decl = *tp;
- data.simduid = ns->simduid;
- simd_array_to_simduid **slot = (*ns->htab)->find_slot (&data, INSERT);
- if (*slot == NULL)
- {
- simd_array_to_simduid *p = XNEW (simd_array_to_simduid);
- *p = data;
- *slot = p;
- }
- else if ((*slot)->simduid != ns->simduid)
- (*slot)->simduid = -1U;
- *walk_subtrees = 0;
- }
- return NULL_TREE;
-}
-
-/* Find "omp simd array" temporaries and map them to corresponding
- simduid. */
-
-static void
-note_simd_array_uses (hash_table<simd_array_to_simduid> **htab, function *fun)
-{
- basic_block bb;
- gimple_stmt_iterator gsi;
- struct walk_stmt_info wi;
- struct note_simd_array_uses_struct ns;
-
- memset (&wi, 0, sizeof (wi));
- wi.info = &ns;
- ns.htab = htab;
-
- FOR_EACH_BB_FN (bb, fun)
- for (gsi = gsi_start_bb (bb); !gsi_end_p (gsi); gsi_next (&gsi))
- {
- gimple *stmt = gsi_stmt (gsi);
- if (!is_gimple_call (stmt) || !gimple_call_internal_p (stmt))
- continue;
- switch (gimple_call_internal_fn (stmt))
- {
- case IFN_GOMP_SIMD_LANE:
- case IFN_GOMP_SIMD_VF:
- case IFN_GOMP_SIMD_LAST_LANE:
- break;
- default:
- continue;
- }
- tree lhs = gimple_call_lhs (stmt);
- if (lhs == NULL_TREE)
- continue;
- imm_use_iterator use_iter;
- gimple *use_stmt;
- ns.simduid = DECL_UID (SSA_NAME_VAR (gimple_call_arg (stmt, 0)));
- FOR_EACH_IMM_USE_STMT (use_stmt, use_iter, lhs)
- if (!is_gimple_debug (use_stmt))
- walk_gimple_op (use_stmt, note_simd_array_uses_cb, &wi);
- }
-}
-
-/* Shrink arrays with "omp simd array" attribute to the corresponding
- vectorization factor. */
-
-static void
-shrink_simd_arrays
- (hash_table<simd_array_to_simduid> *simd_array_to_simduid_htab,
- hash_table<simduid_to_vf> *simduid_to_vf_htab)
-{
- for (hash_table<simd_array_to_simduid>::iterator iter
- = simd_array_to_simduid_htab->begin ();
- iter != simd_array_to_simduid_htab->end (); ++iter)
- if ((*iter)->simduid != -1U)
- {
- tree decl = (*iter)->decl;
- poly_uint64 vf = 1;
- if (simduid_to_vf_htab)
- {
- simduid_to_vf *p = NULL, data;
- data.simduid = (*iter)->simduid;
- p = simduid_to_vf_htab->find (&data);
- if (p)
- vf = p->vf;
- }
- tree atype
- = build_array_type_nelts (TREE_TYPE (TREE_TYPE (decl)), vf);
- TREE_TYPE (decl) = atype;
- relayout_decl (decl);
- }
-
- delete simd_array_to_simduid_htab;
-}
-
-/* Initialize the vec_info with kind KIND_IN and target cost data
- TARGET_COST_DATA_IN. */
-
-vec_info::vec_info (vec_info::vec_kind kind_in, vec_info_shared *shared_)
- : kind (kind_in),
- shared (shared_),
- stmt_vec_info_ro (false)
-{
- stmt_vec_infos.create (50);
-}
-
-vec_info::~vec_info ()
-{
- for (slp_instance &instance : slp_instances)
- vect_free_slp_instance (instance);
-
- free_stmt_vec_infos ();
-}
-
-vec_info_shared::vec_info_shared ()
- : n_stmts (0),
- datarefs (vNULL),
- datarefs_copy (vNULL),
- ddrs (vNULL)
-{
-}
-
-vec_info_shared::~vec_info_shared ()
-{
- free_data_refs (datarefs);
- free_dependence_relations (ddrs);
- datarefs_copy.release ();
-}
-
-void
-vec_info_shared::save_datarefs ()
-{
- if (!flag_checking)
- return;
- datarefs_copy.reserve_exact (datarefs.length ());
- for (unsigned i = 0; i < datarefs.length (); ++i)
- datarefs_copy.quick_push (*datarefs[i]);
-}
-
-void
-vec_info_shared::check_datarefs ()
-{
- if (!flag_checking)
- return;
- gcc_assert (datarefs.length () == datarefs_copy.length ());
- for (unsigned i = 0; i < datarefs.length (); ++i)
- if (memcmp (&datarefs_copy[i], datarefs[i],
- offsetof (data_reference, alt_indices)) != 0)
- gcc_unreachable ();
-}
-
-/* Record that STMT belongs to the vectorizable region. Create and return
- an associated stmt_vec_info. */
-
-stmt_vec_info
-vec_info::add_stmt (gimple *stmt)
-{
- stmt_vec_info res = new_stmt_vec_info (stmt);
- set_vinfo_for_stmt (stmt, res);
- return res;
-}
-
-/* Record that STMT belongs to the vectorizable region. Create a new
- stmt_vec_info and mark VECINFO as being related and return the new
- stmt_vec_info. */
-
-stmt_vec_info
-vec_info::add_pattern_stmt (gimple *stmt, stmt_vec_info stmt_info)
-{
- stmt_vec_info res = new_stmt_vec_info (stmt);
- set_vinfo_for_stmt (stmt, res, false);
- STMT_VINFO_RELATED_STMT (res) = stmt_info;
- return res;
-}
-
-/* If STMT has an associated stmt_vec_info, return that vec_info, otherwise
- return null. It is safe to call this function on any statement, even if
- it might not be part of the vectorizable region. */
-
-stmt_vec_info
-vec_info::lookup_stmt (gimple *stmt)
-{
- unsigned int uid = gimple_uid (stmt);
- if (uid > 0 && uid - 1 < stmt_vec_infos.length ())
- {
- stmt_vec_info res = stmt_vec_infos[uid - 1];
- if (res && res->stmt == stmt)
- return res;
- }
- return NULL;
-}
-
-/* If NAME is an SSA_NAME and its definition has an associated stmt_vec_info,
- return that stmt_vec_info, otherwise return null. It is safe to call
- this on arbitrary operands. */
-
-stmt_vec_info
-vec_info::lookup_def (tree name)
-{
- if (TREE_CODE (name) == SSA_NAME
- && !SSA_NAME_IS_DEFAULT_DEF (name))
- return lookup_stmt (SSA_NAME_DEF_STMT (name));
- return NULL;
-}
-
-/* See whether there is a single non-debug statement that uses LHS and
- whether that statement has an associated stmt_vec_info. Return the
- stmt_vec_info if so, otherwise return null. */
-
-stmt_vec_info
-vec_info::lookup_single_use (tree lhs)
-{
- use_operand_p dummy;
- gimple *use_stmt;
- if (single_imm_use (lhs, &dummy, &use_stmt))
- return lookup_stmt (use_stmt);
- return NULL;
-}
-
-/* Return vectorization information about DR. */
-
-dr_vec_info *
-vec_info::lookup_dr (data_reference *dr)
-{
- stmt_vec_info stmt_info = lookup_stmt (DR_STMT (dr));
- /* DR_STMT should never refer to a stmt in a pattern replacement. */
- gcc_checking_assert (!is_pattern_stmt_p (stmt_info));
- return STMT_VINFO_DR_INFO (stmt_info->dr_aux.stmt);
-}
-
-/* Record that NEW_STMT_INFO now implements the same data reference
- as OLD_STMT_INFO. */
-
-void
-vec_info::move_dr (stmt_vec_info new_stmt_info, stmt_vec_info old_stmt_info)
-{
- gcc_assert (!is_pattern_stmt_p (old_stmt_info));
- STMT_VINFO_DR_INFO (old_stmt_info)->stmt = new_stmt_info;
- new_stmt_info->dr_aux = old_stmt_info->dr_aux;
- STMT_VINFO_DR_WRT_VEC_LOOP (new_stmt_info)
- = STMT_VINFO_DR_WRT_VEC_LOOP (old_stmt_info);
- STMT_VINFO_GATHER_SCATTER_P (new_stmt_info)
- = STMT_VINFO_GATHER_SCATTER_P (old_stmt_info);
-}
-
-/* Permanently remove the statement described by STMT_INFO from the
- function. */
-
-void
-vec_info::remove_stmt (stmt_vec_info stmt_info)
-{
- gcc_assert (!stmt_info->pattern_stmt_p);
- set_vinfo_for_stmt (stmt_info->stmt, NULL);
- unlink_stmt_vdef (stmt_info->stmt);
- gimple_stmt_iterator si = gsi_for_stmt (stmt_info->stmt);
- gsi_remove (&si, true);
- release_defs (stmt_info->stmt);
- free_stmt_vec_info (stmt_info);
-}
-
-/* Replace the statement at GSI by NEW_STMT, both the vectorization
- information and the function itself. STMT_INFO describes the statement
- at GSI. */
-
-void
-vec_info::replace_stmt (gimple_stmt_iterator *gsi, stmt_vec_info stmt_info,
- gimple *new_stmt)
-{
- gimple *old_stmt = stmt_info->stmt;
- gcc_assert (!stmt_info->pattern_stmt_p && old_stmt == gsi_stmt (*gsi));
- gimple_set_uid (new_stmt, gimple_uid (old_stmt));
- stmt_info->stmt = new_stmt;
- gsi_replace (gsi, new_stmt, true);
-}
-
-/* Insert stmts in SEQ on the VEC_INFO region entry. If CONTEXT is
- not NULL it specifies whether to use the sub-region entry
- determined by it, currently used for loop vectorization to insert
- on the inner loop entry vs. the outer loop entry. */
-
-void
-vec_info::insert_seq_on_entry (stmt_vec_info context, gimple_seq seq)
-{
- if (loop_vec_info loop_vinfo = dyn_cast <loop_vec_info> (this))
- {
- class loop *loop = LOOP_VINFO_LOOP (loop_vinfo);
- basic_block new_bb;
- edge pe;
-
- if (context && nested_in_vect_loop_p (loop, context))
- loop = loop->inner;
-
- pe = loop_preheader_edge (loop);
- new_bb = gsi_insert_seq_on_edge_immediate (pe, seq);
- gcc_assert (!new_bb);
- }
- else
- {
- bb_vec_info bb_vinfo = as_a <bb_vec_info> (this);
- gimple_stmt_iterator gsi_region_begin
- = gsi_after_labels (bb_vinfo->bbs[0]);
- gsi_insert_seq_before (&gsi_region_begin, seq, GSI_SAME_STMT);
- }
-}
-
-/* Like insert_seq_on_entry but just inserts the single stmt NEW_STMT. */
-
-void
-vec_info::insert_on_entry (stmt_vec_info context, gimple *new_stmt)
-{
- gimple_seq seq = NULL;
- gimple_stmt_iterator gsi = gsi_start (seq);
- gsi_insert_before_without_update (&gsi, new_stmt, GSI_SAME_STMT);
- insert_seq_on_entry (context, seq);
-}
-
-/* Create and initialize a new stmt_vec_info struct for STMT. */
-
-stmt_vec_info
-vec_info::new_stmt_vec_info (gimple *stmt)
-{
- stmt_vec_info res = XCNEW (class _stmt_vec_info);
- res->stmt = stmt;
-
- STMT_VINFO_TYPE (res) = undef_vec_info_type;
- STMT_VINFO_RELEVANT (res) = vect_unused_in_scope;
- STMT_VINFO_VECTORIZABLE (res) = true;
- STMT_VINFO_REDUC_TYPE (res) = TREE_CODE_REDUCTION;
- STMT_VINFO_REDUC_CODE (res) = ERROR_MARK;
- STMT_VINFO_REDUC_FN (res) = IFN_LAST;
- STMT_VINFO_REDUC_IDX (res) = -1;
- STMT_VINFO_SLP_VECT_ONLY (res) = false;
- STMT_VINFO_SLP_VECT_ONLY_PATTERN (res) = false;
- STMT_VINFO_VEC_STMTS (res) = vNULL;
- res->reduc_initial_values = vNULL;
- res->reduc_scalar_results = vNULL;
-
- if (is_a <loop_vec_info> (this)
- && gimple_code (stmt) == GIMPLE_PHI
- && is_loop_header_bb_p (gimple_bb (stmt)))
- STMT_VINFO_DEF_TYPE (res) = vect_unknown_def_type;
- else
- STMT_VINFO_DEF_TYPE (res) = vect_internal_def;
-
- STMT_SLP_TYPE (res) = loop_vect;
-
- /* This is really "uninitialized" until vect_compute_data_ref_alignment. */
- res->dr_aux.misalignment = DR_MISALIGNMENT_UNINITIALIZED;
-
- return res;
-}
-
-/* Associate STMT with INFO. */
-
-void
-vec_info::set_vinfo_for_stmt (gimple *stmt, stmt_vec_info info, bool check_ro)
-{
- unsigned int uid = gimple_uid (stmt);
- if (uid == 0)
- {
- gcc_assert (!check_ro || !stmt_vec_info_ro);
- gcc_checking_assert (info);
- uid = stmt_vec_infos.length () + 1;
- gimple_set_uid (stmt, uid);
- stmt_vec_infos.safe_push (info);
- }
- else
- {
- gcc_checking_assert (info == NULL);
- stmt_vec_infos[uid - 1] = info;
- }
-}
-
-/* Free the contents of stmt_vec_infos. */
-
-void
-vec_info::free_stmt_vec_infos (void)
-{
- for (stmt_vec_info &info : stmt_vec_infos)
- if (info != NULL)
- free_stmt_vec_info (info);
- stmt_vec_infos.release ();
-}
-
-/* Free STMT_INFO. */
-
-void
-vec_info::free_stmt_vec_info (stmt_vec_info stmt_info)
-{
- if (stmt_info->pattern_stmt_p)
- {
- gimple_set_bb (stmt_info->stmt, NULL);
- tree lhs = gimple_get_lhs (stmt_info->stmt);
- if (lhs && TREE_CODE (lhs) == SSA_NAME)
- release_ssa_name (lhs);
- }
-
- stmt_info->reduc_initial_values.release ();
- stmt_info->reduc_scalar_results.release ();
- STMT_VINFO_SIMD_CLONE_INFO (stmt_info).release ();
- STMT_VINFO_VEC_STMTS (stmt_info).release ();
- free (stmt_info);
-}
-
-/* Returns true if S1 dominates S2. */
-
-bool
-vect_stmt_dominates_stmt_p (gimple *s1, gimple *s2)
-{
- basic_block bb1 = gimple_bb (s1), bb2 = gimple_bb (s2);
-
- /* If bb1 is NULL, it should be a GIMPLE_NOP def stmt of an (D)
- SSA_NAME. Assume it lives at the beginning of function and
- thus dominates everything. */
- if (!bb1 || s1 == s2)
- return true;
-
- /* If bb2 is NULL, it doesn't dominate any stmt with a bb. */
- if (!bb2)
- return false;
-
- if (bb1 != bb2)
- return dominated_by_p (CDI_DOMINATORS, bb2, bb1);
-
- /* PHIs in the same basic block are assumed to be
- executed all in parallel, if only one stmt is a PHI,
- it dominates the other stmt in the same basic block. */
- if (gimple_code (s1) == GIMPLE_PHI)
- return true;
-
- if (gimple_code (s2) == GIMPLE_PHI)
- return false;
-
- /* Inserted vectorized stmts all have UID 0 while the original stmts
- in the IL have UID increasing within a BB. Walk from both sides
- until we find the other stmt or a stmt with UID != 0. */
- gimple_stmt_iterator gsi1 = gsi_for_stmt (s1);
- while (gimple_uid (gsi_stmt (gsi1)) == 0)
- {
- gsi_next (&gsi1);
- if (gsi_end_p (gsi1))
- return false;
- if (gsi_stmt (gsi1) == s2)
- return true;
- }
- if (gimple_uid (gsi_stmt (gsi1)) == -1u)
- return false;
-
- gimple_stmt_iterator gsi2 = gsi_for_stmt (s2);
- while (gimple_uid (gsi_stmt (gsi2)) == 0)
- {
- gsi_prev (&gsi2);
- if (gsi_end_p (gsi2))
- return false;
- if (gsi_stmt (gsi2) == s1)
- return true;
- }
- if (gimple_uid (gsi_stmt (gsi2)) == -1u)
- return false;
-
- if (gimple_uid (gsi_stmt (gsi1)) <= gimple_uid (gsi_stmt (gsi2)))
- return true;
- return false;
-}
-
-/* A helper function to free scev and LOOP niter information, as well as
- clear loop constraint LOOP_C_FINITE. */
-
-void
-vect_free_loop_info_assumptions (class loop *loop)
-{
- scev_reset_htab ();
- /* We need to explicitly reset upper bound information since they are
- used even after free_numbers_of_iterations_estimates. */
- loop->any_upper_bound = false;
- loop->any_likely_upper_bound = false;
- free_numbers_of_iterations_estimates (loop);
- loop_constraint_clear (loop, LOOP_C_FINITE);
-}
-
-/* If LOOP has been versioned during ifcvt, return the internal call
- guarding it. */
-
-gimple *
-vect_loop_vectorized_call (class loop *loop, gcond **cond)
-{
- basic_block bb = loop_preheader_edge (loop)->src;
- gimple *g;
- do
- {
- g = last_stmt (bb);
- if ((g && gimple_code (g) == GIMPLE_COND)
- || !single_succ_p (bb))
- break;
- if (!single_pred_p (bb))
- break;
- bb = single_pred (bb);
- }
- while (1);
- if (g && gimple_code (g) == GIMPLE_COND)
- {
- if (cond)
- *cond = as_a <gcond *> (g);
- gimple_stmt_iterator gsi = gsi_for_stmt (g);
- gsi_prev (&gsi);
- if (!gsi_end_p (gsi))
- {
- g = gsi_stmt (gsi);
- if (gimple_call_internal_p (g, IFN_LOOP_VECTORIZED)
- && (tree_to_shwi (gimple_call_arg (g, 0)) == loop->num
- || tree_to_shwi (gimple_call_arg (g, 1)) == loop->num))
- return g;
- }
- }
- return NULL;
-}
-
-/* If LOOP has been versioned during loop distribution, return the gurading
- internal call. */
-
-static gimple *
-vect_loop_dist_alias_call (class loop *loop, function *fun)
-{
- basic_block bb;
- basic_block entry;
- class loop *outer, *orig;
- gimple_stmt_iterator gsi;
- gimple *g;
-
- if (loop->orig_loop_num == 0)
- return NULL;
-
- orig = get_loop (fun, loop->orig_loop_num);
- if (orig == NULL)
- {
- /* The original loop is somehow destroyed. Clear the information. */
- loop->orig_loop_num = 0;
- return NULL;
- }
-
- if (loop != orig)
- bb = nearest_common_dominator (CDI_DOMINATORS, loop->header, orig->header);
- else
- bb = loop_preheader_edge (loop)->src;
-
- outer = bb->loop_father;
- entry = ENTRY_BLOCK_PTR_FOR_FN (fun);
-
- /* Look upward in dominance tree. */
- for (; bb != entry && flow_bb_inside_loop_p (outer, bb);
- bb = get_immediate_dominator (CDI_DOMINATORS, bb))
- {
- g = last_stmt (bb);
- if (g == NULL || gimple_code (g) != GIMPLE_COND)
- continue;
-
- gsi = gsi_for_stmt (g);
- gsi_prev (&gsi);
- if (gsi_end_p (gsi))
- continue;
-
- g = gsi_stmt (gsi);
- /* The guarding internal function call must have the same distribution
- alias id. */
- if (gimple_call_internal_p (g, IFN_LOOP_DIST_ALIAS)
- && (tree_to_shwi (gimple_call_arg (g, 0)) == loop->orig_loop_num))
- return g;
- }
- return NULL;
-}
-
-/* Set the uids of all the statements in basic blocks inside loop
- represented by LOOP_VINFO. LOOP_VECTORIZED_CALL is the internal
- call guarding the loop which has been if converted. */
-static void
-set_uid_loop_bbs (loop_vec_info loop_vinfo, gimple *loop_vectorized_call,
- function *fun)
-{
- tree arg = gimple_call_arg (loop_vectorized_call, 1);
- basic_block *bbs;
- unsigned int i;
- class loop *scalar_loop = get_loop (fun, tree_to_shwi (arg));
-
- LOOP_VINFO_SCALAR_LOOP (loop_vinfo) = scalar_loop;
- gcc_checking_assert (vect_loop_vectorized_call (scalar_loop)
- == loop_vectorized_call);
- /* If we are going to vectorize outer loop, prevent vectorization
- of the inner loop in the scalar loop - either the scalar loop is
- thrown away, so it is a wasted work, or is used only for
- a few iterations. */
- if (scalar_loop->inner)
- {
- gimple *g = vect_loop_vectorized_call (scalar_loop->inner);
- if (g)
- {
- arg = gimple_call_arg (g, 0);
- get_loop (fun, tree_to_shwi (arg))->dont_vectorize = true;
- fold_loop_internal_call (g, boolean_false_node);
- }
- }
- bbs = get_loop_body (scalar_loop);
- for (i = 0; i < scalar_loop->num_nodes; i++)
- {
- basic_block bb = bbs[i];
- gimple_stmt_iterator gsi;
- for (gsi = gsi_start_phis (bb); !gsi_end_p (gsi); gsi_next (&gsi))
- {
- gimple *phi = gsi_stmt (gsi);
- gimple_set_uid (phi, 0);
- }
- for (gsi = gsi_start_bb (bb); !gsi_end_p (gsi); gsi_next (&gsi))
- {
- gimple *stmt = gsi_stmt (gsi);
- gimple_set_uid (stmt, 0);
- }
- }
- free (bbs);
-}
-
-/* Generate vectorized code for LOOP and its epilogues. */
-
-static void
-vect_transform_loops (hash_table<simduid_to_vf> *&simduid_to_vf_htab,
- loop_p loop, gimple *loop_vectorized_call,
- function *fun)
-{
- loop_vec_info loop_vinfo = loop_vec_info_for_loop (loop);
-
- if (loop_vectorized_call)
- set_uid_loop_bbs (loop_vinfo, loop_vectorized_call, fun);
-
- unsigned HOST_WIDE_INT bytes;
- if (dump_enabled_p ())
- {
- if (GET_MODE_SIZE (loop_vinfo->vector_mode).is_constant (&bytes))
- dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, vect_location,
- "loop vectorized using %wu byte vectors\n", bytes);
- else
- dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, vect_location,
- "loop vectorized using variable length vectors\n");
- }
-
- loop_p new_loop = vect_transform_loop (loop_vinfo,
- loop_vectorized_call);
- /* Now that the loop has been vectorized, allow it to be unrolled
- etc. */
- loop->force_vectorize = false;
-
- if (loop->simduid)
- {
- simduid_to_vf *simduid_to_vf_data = XNEW (simduid_to_vf);
- if (!simduid_to_vf_htab)
- simduid_to_vf_htab = new hash_table<simduid_to_vf> (15);
- simduid_to_vf_data->simduid = DECL_UID (loop->simduid);
- simduid_to_vf_data->vf = loop_vinfo->vectorization_factor;
- *simduid_to_vf_htab->find_slot (simduid_to_vf_data, INSERT)
- = simduid_to_vf_data;
- }
-
- /* Epilogue of vectorized loop must be vectorized too. */
- if (new_loop)
- vect_transform_loops (simduid_to_vf_htab, new_loop, NULL, fun);
-}
-
-/* Try to vectorize LOOP. */
-
-static unsigned
-try_vectorize_loop_1 (hash_table<simduid_to_vf> *&simduid_to_vf_htab,
- unsigned *num_vectorized_loops, loop_p loop,
- gimple *loop_vectorized_call,
- gimple *loop_dist_alias_call,
- function *fun)
-{
- unsigned ret = 0;
- vec_info_shared shared;
- auto_purge_vect_location sentinel;
- vect_location = find_loop_location (loop);
-
- if (LOCATION_LOCUS (vect_location.get_location_t ()) != UNKNOWN_LOCATION
- && dump_enabled_p ())
- dump_printf (MSG_NOTE | MSG_PRIORITY_INTERNALS,
- "\nAnalyzing loop at %s:%d\n",
- LOCATION_FILE (vect_location.get_location_t ()),
- LOCATION_LINE (vect_location.get_location_t ()));
-
- /* Try to analyze the loop, retaining an opt_problem if dump_enabled_p. */
- opt_loop_vec_info loop_vinfo = vect_analyze_loop (loop, &shared);
- loop->aux = loop_vinfo;
-
- if (!loop_vinfo)
- if (dump_enabled_p ())
- if (opt_problem *problem = loop_vinfo.get_problem ())
- {
- dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location,
- "couldn't vectorize loop\n");
- problem->emit_and_clear ();
- }
-
- if (!loop_vinfo || !LOOP_VINFO_VECTORIZABLE_P (loop_vinfo))
- {
- /* Free existing information if loop is analyzed with some
- assumptions. */
- if (loop_constraint_set_p (loop, LOOP_C_FINITE))
- vect_free_loop_info_assumptions (loop);
-
- /* If we applied if-conversion then try to vectorize the
- BB of innermost loops.
- ??? Ideally BB vectorization would learn to vectorize
- control flow by applying if-conversion on-the-fly, the
- following retains the if-converted loop body even when
- only non-if-converted parts took part in BB vectorization. */
- if (flag_tree_slp_vectorize != 0
- && loop_vectorized_call
- && ! loop->inner)
- {
- basic_block bb = loop->header;
- bool require_loop_vectorize = false;
- for (gimple_stmt_iterator gsi = gsi_start_bb (bb);
- !gsi_end_p (gsi); gsi_next (&gsi))
- {
- gimple *stmt = gsi_stmt (gsi);
- gcall *call = dyn_cast <gcall *> (stmt);
- if (call && gimple_call_internal_p (call))
- {
- internal_fn ifn = gimple_call_internal_fn (call);
- if (ifn == IFN_MASK_LOAD || ifn == IFN_MASK_STORE
- /* Don't keep the if-converted parts when the ifn with
- specifc type is not supported by the backend. */
- || (direct_internal_fn_p (ifn)
- && !direct_internal_fn_supported_p
- (call, OPTIMIZE_FOR_SPEED)))
- {
- require_loop_vectorize = true;
- break;
- }
- }
- gimple_set_uid (stmt, -1);
- gimple_set_visited (stmt, false);
- }
- if (!require_loop_vectorize)
- {
- tree arg = gimple_call_arg (loop_vectorized_call, 1);
- class loop *scalar_loop = get_loop (fun, tree_to_shwi (arg));
- if (vect_slp_if_converted_bb (bb, scalar_loop))
- {
- fold_loop_internal_call (loop_vectorized_call,
- boolean_true_node);
- loop_vectorized_call = NULL;
- ret |= TODO_cleanup_cfg | TODO_update_ssa_only_virtuals;
- }
- }
- }
- /* If outer loop vectorization fails for LOOP_VECTORIZED guarded
- loop, don't vectorize its inner loop; we'll attempt to
- vectorize LOOP_VECTORIZED guarded inner loop of the scalar
- loop version. */
- if (loop_vectorized_call && loop->inner)
- loop->inner->dont_vectorize = true;
- return ret;
- }
-
- if (!dbg_cnt (vect_loop))
- {
- /* Free existing information if loop is analyzed with some
- assumptions. */
- if (loop_constraint_set_p (loop, LOOP_C_FINITE))
- vect_free_loop_info_assumptions (loop);
- return ret;
- }
-
- (*num_vectorized_loops)++;
- /* Transform LOOP and its epilogues. */
- vect_transform_loops (simduid_to_vf_htab, loop, loop_vectorized_call, fun);
-
- if (loop_vectorized_call)
- {
- fold_loop_internal_call (loop_vectorized_call, boolean_true_node);
- ret |= TODO_cleanup_cfg;
- }
- if (loop_dist_alias_call)
- {
- tree value = gimple_call_arg (loop_dist_alias_call, 1);
- fold_loop_internal_call (loop_dist_alias_call, value);
- ret |= TODO_cleanup_cfg;
- }
-
- return ret;
-}
-
-/* Try to vectorize LOOP. */
-
-static unsigned
-try_vectorize_loop (hash_table<simduid_to_vf> *&simduid_to_vf_htab,
- unsigned *num_vectorized_loops, loop_p loop,
- function *fun)
-{
- if (!((flag_tree_loop_vectorize
- && optimize_loop_nest_for_speed_p (loop))
- || loop->force_vectorize))
- return 0;
-
- return try_vectorize_loop_1 (simduid_to_vf_htab, num_vectorized_loops, loop,
- vect_loop_vectorized_call (loop),
- vect_loop_dist_alias_call (loop, fun), fun);
-}
-
-
-/* Loop autovectorization. */
-
-namespace {
-
-const pass_data pass_data_vectorize =
-{
- GIMPLE_PASS, /* type */
- "vect", /* name */
- OPTGROUP_LOOP | OPTGROUP_VEC, /* optinfo_flags */
- TV_TREE_VECTORIZATION, /* tv_id */
- ( PROP_cfg | PROP_ssa ), /* properties_required */
- 0, /* properties_provided */
- 0, /* properties_destroyed */
- 0, /* todo_flags_start */
- 0, /* todo_flags_finish */
-};
-
-class pass_vectorize : public gimple_opt_pass
-{
-public:
- pass_vectorize (gcc::context *ctxt)
- : gimple_opt_pass (pass_data_vectorize, ctxt)
- {}
-
- /* opt_pass methods: */
- virtual bool gate (function *fun)
- {
- return flag_tree_loop_vectorize || fun->has_force_vectorize_loops;
- }
-
- virtual unsigned int execute (function *);
-
-}; // class pass_vectorize
-
-/* Function vectorize_loops.
-
- Entry point to loop vectorization phase. */
-
-unsigned
-pass_vectorize::execute (function *fun)
-{
- unsigned int i;
- unsigned int num_vectorized_loops = 0;
- unsigned int vect_loops_num;
- hash_table<simduid_to_vf> *simduid_to_vf_htab = NULL;
- hash_table<simd_array_to_simduid> *simd_array_to_simduid_htab = NULL;
- bool any_ifcvt_loops = false;
- unsigned ret = 0;
-
- vect_loops_num = number_of_loops (fun);
-
- /* Bail out if there are no loops. */
- if (vect_loops_num <= 1)
- return 0;
-
- vect_slp_init ();
-
- if (fun->has_simduid_loops)
- note_simd_array_uses (&simd_array_to_simduid_htab, fun);
-
- /* ----------- Analyze loops. ----------- */
-
- /* If some loop was duplicated, it gets bigger number
- than all previously defined loops. This fact allows us to run
- only over initial loops skipping newly generated ones. */
- for (auto loop : loops_list (fun, 0))
- if (loop->dont_vectorize)
- {
- any_ifcvt_loops = true;
- /* If-conversion sometimes versions both the outer loop
- (for the case when outer loop vectorization might be
- desirable) as well as the inner loop in the scalar version
- of the loop. So we have:
- if (LOOP_VECTORIZED (1, 3))
- {
- loop1
- loop2
- }
- else
- loop3 (copy of loop1)
- if (LOOP_VECTORIZED (4, 5))
- loop4 (copy of loop2)
- else
- loop5 (copy of loop4)
- If loops' iteration gives us loop3 first (which has
- dont_vectorize set), make sure to process loop1 before loop4;
- so that we can prevent vectorization of loop4 if loop1
- is successfully vectorized. */
- if (loop->inner)
- {
- gimple *loop_vectorized_call
- = vect_loop_vectorized_call (loop);
- if (loop_vectorized_call
- && vect_loop_vectorized_call (loop->inner))
- {
- tree arg = gimple_call_arg (loop_vectorized_call, 0);
- class loop *vector_loop
- = get_loop (fun, tree_to_shwi (arg));
- if (vector_loop && vector_loop != loop)
- {
- /* Make sure we don't vectorize it twice. */
- vector_loop->dont_vectorize = true;
- ret |= try_vectorize_loop (simduid_to_vf_htab,
- &num_vectorized_loops,
- vector_loop, fun);
- }
- }
- }
- }
- else
- ret |= try_vectorize_loop (simduid_to_vf_htab, &num_vectorized_loops,
- loop, fun);
-
- vect_location = dump_user_location_t ();
-
- statistics_counter_event (fun, "Vectorized loops", num_vectorized_loops);
- if (dump_enabled_p ()
- || (num_vectorized_loops > 0 && dump_enabled_p ()))
- dump_printf_loc (MSG_NOTE, vect_location,
- "vectorized %u loops in function.\n",
- num_vectorized_loops);
-
- /* ----------- Finalize. ----------- */
-
- if (any_ifcvt_loops)
- for (i = 1; i < number_of_loops (fun); i++)
- {
- class loop *loop = get_loop (fun, i);
- if (loop && loop->dont_vectorize)
- {
- gimple *g = vect_loop_vectorized_call (loop);
- if (g)
- {
- fold_loop_internal_call (g, boolean_false_node);
- ret |= TODO_cleanup_cfg;
- g = NULL;
- }
- else
- g = vect_loop_dist_alias_call (loop, fun);
-
- if (g)
- {
- fold_loop_internal_call (g, boolean_false_node);
- ret |= TODO_cleanup_cfg;
- }
- }
- }
-
- /* Fold IFN_GOMP_SIMD_{VF,LANE,LAST_LANE,ORDERED_{START,END}} builtins. */
- if (fun->has_simduid_loops)
- {
- adjust_simduid_builtins (simduid_to_vf_htab, fun);
- /* Avoid stale SCEV cache entries for the SIMD_LANE defs. */
- scev_reset ();
- }
- /* Shrink any "omp array simd" temporary arrays to the
- actual vectorization factors. */
- if (simd_array_to_simduid_htab)
- shrink_simd_arrays (simd_array_to_simduid_htab, simduid_to_vf_htab);
- delete simduid_to_vf_htab;
- fun->has_simduid_loops = false;
-
- if (num_vectorized_loops > 0)
- {
- /* If we vectorized any loop only virtual SSA form needs to be updated.
- ??? Also while we try hard to update loop-closed SSA form we fail
- to properly do this in some corner-cases (see PR56286). */
- rewrite_into_loop_closed_ssa (NULL, TODO_update_ssa_only_virtuals);
- ret |= TODO_cleanup_cfg;
- }
-
- for (i = 1; i < number_of_loops (fun); i++)
- {
- loop_vec_info loop_vinfo;
- bool has_mask_store;
-
- class loop *loop = get_loop (fun, i);
- if (!loop || !loop->aux)
- continue;
- loop_vinfo = (loop_vec_info) loop->aux;
- has_mask_store = LOOP_VINFO_HAS_MASK_STORE (loop_vinfo);
- delete loop_vinfo;
- if (has_mask_store
- && targetm.vectorize.empty_mask_is_expensive (IFN_MASK_STORE))
- optimize_mask_stores (loop);
-
- auto_bitmap exit_bbs;
- /* Perform local CSE, this esp. helps because we emit code for
- predicates that need to be shared for optimal predicate usage.
- However reassoc will re-order them and prevent CSE from working
- as it should. CSE only the loop body, not the entry. */
- bitmap_set_bit (exit_bbs, single_exit (loop)->dest->index);
-
- edge entry = EDGE_PRED (loop_preheader_edge (loop)->src, 0);
- do_rpo_vn (fun, entry, exit_bbs);
-
- loop->aux = NULL;
- }
-
- vect_slp_fini ();
-
- return ret;
-}
-
-} // anon namespace
-
-gimple_opt_pass *
-make_pass_vectorize (gcc::context *ctxt)
-{
- return new pass_vectorize (ctxt);
-}
-
-/* Entry point to the simduid cleanup pass. */
-
-namespace {
-
-const pass_data pass_data_simduid_cleanup =
-{
- GIMPLE_PASS, /* type */
- "simduid", /* name */
- OPTGROUP_NONE, /* optinfo_flags */
- TV_NONE, /* tv_id */
- ( PROP_ssa | PROP_cfg ), /* properties_required */
- 0, /* properties_provided */
- 0, /* properties_destroyed */
- 0, /* todo_flags_start */
- 0, /* todo_flags_finish */
-};
-
-class pass_simduid_cleanup : public gimple_opt_pass
-{
-public:
- pass_simduid_cleanup (gcc::context *ctxt)
- : gimple_opt_pass (pass_data_simduid_cleanup, ctxt)
- {}
-
- /* opt_pass methods: */
- opt_pass * clone () { return new pass_simduid_cleanup (m_ctxt); }
- virtual bool gate (function *fun) { return fun->has_simduid_loops; }
- virtual unsigned int execute (function *);
-
-}; // class pass_simduid_cleanup
-
-unsigned int
-pass_simduid_cleanup::execute (function *fun)
-{
- hash_table<simd_array_to_simduid> *simd_array_to_simduid_htab = NULL;
-
- note_simd_array_uses (&simd_array_to_simduid_htab, fun);
-
- /* Fold IFN_GOMP_SIMD_{VF,LANE,LAST_LANE,ORDERED_{START,END}} builtins. */
- adjust_simduid_builtins (NULL, fun);
-
- /* Shrink any "omp array simd" temporary arrays to the
- actual vectorization factors. */
- if (simd_array_to_simduid_htab)
- shrink_simd_arrays (simd_array_to_simduid_htab, NULL);
- fun->has_simduid_loops = false;
- return 0;
-}
-
-} // anon namespace
-
-gimple_opt_pass *
-make_pass_simduid_cleanup (gcc::context *ctxt)
-{
- return new pass_simduid_cleanup (ctxt);
-}
-
-
-/* Entry point to basic block SLP phase. */
-
-namespace {
-
-const pass_data pass_data_slp_vectorize =
-{
- GIMPLE_PASS, /* type */
- "slp", /* name */
- OPTGROUP_LOOP | OPTGROUP_VEC, /* optinfo_flags */
- TV_TREE_SLP_VECTORIZATION, /* tv_id */
- ( PROP_ssa | PROP_cfg ), /* properties_required */
- 0, /* properties_provided */
- 0, /* properties_destroyed */
- 0, /* todo_flags_start */
- TODO_update_ssa, /* todo_flags_finish */
-};
-
-class pass_slp_vectorize : public gimple_opt_pass
-{
-public:
- pass_slp_vectorize (gcc::context *ctxt)
- : gimple_opt_pass (pass_data_slp_vectorize, ctxt)
- {}
-
- /* opt_pass methods: */
- opt_pass * clone () { return new pass_slp_vectorize (m_ctxt); }
- virtual bool gate (function *) { return flag_tree_slp_vectorize != 0; }
- virtual unsigned int execute (function *);
-
-}; // class pass_slp_vectorize
-
-unsigned int
-pass_slp_vectorize::execute (function *fun)
-{
- auto_purge_vect_location sentinel;
- basic_block bb;
-
- bool in_loop_pipeline = scev_initialized_p ();
- if (!in_loop_pipeline)
- {
- loop_optimizer_init (LOOPS_NORMAL);
- scev_initialize ();
- }
-
- /* Mark all stmts as not belonging to the current region and unvisited. */
- FOR_EACH_BB_FN (bb, fun)
- {
- for (gphi_iterator gsi = gsi_start_phis (bb); !gsi_end_p (gsi);
- gsi_next (&gsi))
- {
- gphi *stmt = gsi.phi ();
- gimple_set_uid (stmt, -1);
- gimple_set_visited (stmt, false);
- }
- for (gimple_stmt_iterator gsi = gsi_start_bb (bb); !gsi_end_p (gsi);
- gsi_next (&gsi))
- {
- gimple *stmt = gsi_stmt (gsi);
- gimple_set_uid (stmt, -1);
- gimple_set_visited (stmt, false);
- }
- }
-
- vect_slp_init ();
-
- vect_slp_function (fun);
-
- vect_slp_fini ();
-
- if (!in_loop_pipeline)
- {
- scev_finalize ();
- loop_optimizer_finalize ();
- }
-
- return 0;
-}
-
-} // anon namespace
-
-gimple_opt_pass *
-make_pass_slp_vectorize (gcc::context *ctxt)
-{
- return new pass_slp_vectorize (ctxt);
-}
-
-
-/* Increase alignment of global arrays to improve vectorization potential.
- TODO:
- - Consider also structs that have an array field.
- - Use ipa analysis to prune arrays that can't be vectorized?
- This should involve global alignment analysis and in the future also
- array padding. */
-
-static unsigned get_vec_alignment_for_type (tree);
-static hash_map<tree, unsigned> *type_align_map;
-
-/* Return alignment of array's vector type corresponding to scalar type.
- 0 if no vector type exists. */
-static unsigned
-get_vec_alignment_for_array_type (tree type)
-{
- gcc_assert (TREE_CODE (type) == ARRAY_TYPE);
- poly_uint64 array_size, vector_size;
-
- tree scalar_type = strip_array_types (type);
- tree vectype = get_related_vectype_for_scalar_type (VOIDmode, scalar_type);
- if (!vectype
- || !poly_int_tree_p (TYPE_SIZE (type), &array_size)
- || !poly_int_tree_p (TYPE_SIZE (vectype), &vector_size)
- || maybe_lt (array_size, vector_size))
- return 0;
-
- return TYPE_ALIGN (vectype);
-}
-
-/* Return alignment of field having maximum alignment of vector type
- corresponding to it's scalar type. For now, we only consider fields whose
- offset is a multiple of it's vector alignment.
- 0 if no suitable field is found. */
-static unsigned
-get_vec_alignment_for_record_type (tree type)
-{
- gcc_assert (TREE_CODE (type) == RECORD_TYPE);
-
- unsigned max_align = 0, alignment;
- HOST_WIDE_INT offset;
- tree offset_tree;
-
- if (TYPE_PACKED (type))
- return 0;
-
- unsigned *slot = type_align_map->get (type);
- if (slot)
- return *slot;
-
- for (tree field = first_field (type);
- field != NULL_TREE;
- field = DECL_CHAIN (field))
- {
- /* Skip if not FIELD_DECL or if alignment is set by user. */
- if (TREE_CODE (field) != FIELD_DECL
- || DECL_USER_ALIGN (field)
- || DECL_ARTIFICIAL (field))
- continue;
-
- /* We don't need to process the type further if offset is variable,
- since the offsets of remaining members will also be variable. */
- if (TREE_CODE (DECL_FIELD_OFFSET (field)) != INTEGER_CST
- || TREE_CODE (DECL_FIELD_BIT_OFFSET (field)) != INTEGER_CST)
- break;
-
- /* Similarly stop processing the type if offset_tree
- does not fit in unsigned HOST_WIDE_INT. */
- offset_tree = bit_position (field);
- if (!tree_fits_uhwi_p (offset_tree))
- break;
-
- offset = tree_to_uhwi (offset_tree);
- alignment = get_vec_alignment_for_type (TREE_TYPE (field));
-
- /* Get maximum alignment of vectorized field/array among those members
- whose offset is multiple of the vector alignment. */
- if (alignment
- && (offset % alignment == 0)
- && (alignment > max_align))
- max_align = alignment;
- }
-
- type_align_map->put (type, max_align);
- return max_align;
-}
-
-/* Return alignment of vector type corresponding to decl's scalar type
- or 0 if it doesn't exist or the vector alignment is lesser than
- decl's alignment. */
-static unsigned
-get_vec_alignment_for_type (tree type)
-{
- if (type == NULL_TREE)
- return 0;
-
- gcc_assert (TYPE_P (type));
-
- static unsigned alignment = 0;
- switch (TREE_CODE (type))
- {
- case ARRAY_TYPE:
- alignment = get_vec_alignment_for_array_type (type);
- break;
- case RECORD_TYPE:
- alignment = get_vec_alignment_for_record_type (type);
- break;
- default:
- alignment = 0;
- break;
- }
-
- return (alignment > TYPE_ALIGN (type)) ? alignment : 0;
-}
-
-/* Entry point to increase_alignment pass. */
-static unsigned int
-increase_alignment (void)
-{
- varpool_node *vnode;
-
- vect_location = dump_user_location_t ();
- type_align_map = new hash_map<tree, unsigned>;
-
- /* Increase the alignment of all global arrays for vectorization. */
- FOR_EACH_DEFINED_VARIABLE (vnode)
- {
- tree decl = vnode->decl;
- unsigned int alignment;
-
- if ((decl_in_symtab_p (decl)
- && !symtab_node::get (decl)->can_increase_alignment_p ())
- || DECL_USER_ALIGN (decl) || DECL_ARTIFICIAL (decl))
- continue;
-
- alignment = get_vec_alignment_for_type (TREE_TYPE (decl));
- if (alignment && vect_can_force_dr_alignment_p (decl, alignment))
- {
- vnode->increase_alignment (alignment);
- if (dump_enabled_p ())
- dump_printf (MSG_NOTE, "Increasing alignment of decl: %T\n", decl);
- }
- }
-
- delete type_align_map;
- return 0;
-}
-
-
-namespace {
-
-const pass_data pass_data_ipa_increase_alignment =
-{
- SIMPLE_IPA_PASS, /* type */
- "increase_alignment", /* name */
- OPTGROUP_LOOP | OPTGROUP_VEC, /* optinfo_flags */
- TV_IPA_OPT, /* tv_id */
- 0, /* properties_required */
- 0, /* properties_provided */
- 0, /* properties_destroyed */
- 0, /* todo_flags_start */
- 0, /* todo_flags_finish */
-};
-
-class pass_ipa_increase_alignment : public simple_ipa_opt_pass
-{
-public:
- pass_ipa_increase_alignment (gcc::context *ctxt)
- : simple_ipa_opt_pass (pass_data_ipa_increase_alignment, ctxt)
- {}
-
- /* opt_pass methods: */
- virtual bool gate (function *)
- {
- return flag_section_anchors && flag_tree_loop_vectorize;
- }
-
- virtual unsigned int execute (function *) { return increase_alignment (); }
-
-}; // class pass_ipa_increase_alignment
-
-} // anon namespace
-
-simple_ipa_opt_pass *
-make_pass_ipa_increase_alignment (gcc::context *ctxt)
-{
- return new pass_ipa_increase_alignment (ctxt);
-}
-
-/* If the condition represented by T is a comparison or the SSA name
- result of a comparison, extract the comparison's operands. Represent
- T as NE_EXPR <T, 0> otherwise. */
-
-void
-scalar_cond_masked_key::get_cond_ops_from_tree (tree t)
-{
- if (TREE_CODE_CLASS (TREE_CODE (t)) == tcc_comparison)
- {
- this->code = TREE_CODE (t);
- this->op0 = TREE_OPERAND (t, 0);
- this->op1 = TREE_OPERAND (t, 1);
- this->inverted_p = false;
- return;
- }
-
- if (TREE_CODE (t) == SSA_NAME)
- if (gassign *stmt = dyn_cast<gassign *> (SSA_NAME_DEF_STMT (t)))
- {
- tree_code code = gimple_assign_rhs_code (stmt);
- if (TREE_CODE_CLASS (code) == tcc_comparison)
- {
- this->code = code;
- this->op0 = gimple_assign_rhs1 (stmt);
- this->op1 = gimple_assign_rhs2 (stmt);
- this->inverted_p = false;
- return;
- }
- else if (code == BIT_NOT_EXPR)
- {
- tree n_op = gimple_assign_rhs1 (stmt);
- if ((stmt = dyn_cast<gassign *> (SSA_NAME_DEF_STMT (n_op))))
- {
- code = gimple_assign_rhs_code (stmt);
- if (TREE_CODE_CLASS (code) == tcc_comparison)
- {
- this->code = code;
- this->op0 = gimple_assign_rhs1 (stmt);
- this->op1 = gimple_assign_rhs2 (stmt);
- this->inverted_p = true;
- return;
- }
- }
- }
- }
-
- this->code = NE_EXPR;
- this->op0 = t;
- this->op1 = build_zero_cst (TREE_TYPE (t));
- this->inverted_p = false;
-}
-
-/* See the comment above the declaration for details. */
-
-unsigned int
-vector_costs::add_stmt_cost (int count, vect_cost_for_stmt kind,
- stmt_vec_info stmt_info, tree vectype,
- int misalign, vect_cost_model_location where)
-{
- unsigned int cost
- = builtin_vectorization_cost (kind, vectype, misalign) * count;
- return record_stmt_cost (stmt_info, where, cost);
-}
-
-/* See the comment above the declaration for details. */
-
-void
-vector_costs::finish_cost (const vector_costs *)
-{
- gcc_assert (!m_finished);
- m_finished = true;
-}
-
-/* Record a base cost of COST units against WHERE. If STMT_INFO is
- nonnull, use it to adjust the cost based on execution frequency
- (where appropriate). */
-
-unsigned int
-vector_costs::record_stmt_cost (stmt_vec_info stmt_info,
- vect_cost_model_location where,
- unsigned int cost)
-{
- cost = adjust_cost_for_freq (stmt_info, where, cost);
- m_costs[where] += cost;
- return cost;
-}
-
-/* COST is the base cost we have calculated for an operation in location WHERE.
- If STMT_INFO is nonnull, use it to adjust the cost based on execution
- frequency (where appropriate). Return the adjusted cost. */
-
-unsigned int
-vector_costs::adjust_cost_for_freq (stmt_vec_info stmt_info,
- vect_cost_model_location where,
- unsigned int cost)
-{
- /* Statements in an inner loop relative to the loop being
- vectorized are weighted more heavily. The value here is
- arbitrary and could potentially be improved with analysis. */
- if (where == vect_body
- && stmt_info
- && stmt_in_inner_loop_p (m_vinfo, stmt_info))
- {
- loop_vec_info loop_vinfo = as_a<loop_vec_info> (m_vinfo);
- cost *= LOOP_VINFO_INNER_LOOP_COST_FACTOR (loop_vinfo);
- }
- return cost;
-}
-
-/* See the comment above the declaration for details. */
-
-bool
-vector_costs::better_main_loop_than_p (const vector_costs *other) const
-{
- int diff = compare_inside_loop_cost (other);
- if (diff != 0)
- return diff < 0;
-
- /* If there's nothing to choose between the loop bodies, see whether
- there's a difference in the prologue and epilogue costs. */
- diff = compare_outside_loop_cost (other);
- if (diff != 0)
- return diff < 0;
-
- return false;
-}
-
-
-/* See the comment above the declaration for details. */
-
-bool
-vector_costs::better_epilogue_loop_than_p (const vector_costs *other,
- loop_vec_info main_loop) const
-{
- loop_vec_info this_loop_vinfo = as_a<loop_vec_info> (this->m_vinfo);
- loop_vec_info other_loop_vinfo = as_a<loop_vec_info> (other->m_vinfo);
-
- poly_int64 this_vf = LOOP_VINFO_VECT_FACTOR (this_loop_vinfo);
- poly_int64 other_vf = LOOP_VINFO_VECT_FACTOR (other_loop_vinfo);
-
- poly_uint64 main_poly_vf = LOOP_VINFO_VECT_FACTOR (main_loop);
- unsigned HOST_WIDE_INT main_vf;
- unsigned HOST_WIDE_INT other_factor, this_factor, other_cost, this_cost;
- /* If we can determine how many iterations are left for the epilogue
- loop, that is if both the main loop's vectorization factor and number
- of iterations are constant, then we use them to calculate the cost of
- the epilogue loop together with a 'likely value' for the epilogues
- vectorization factor. Otherwise we use the main loop's vectorization
- factor and the maximum poly value for the epilogue's. If the target
- has not provided with a sensible upper bound poly vectorization
- factors are likely to be favored over constant ones. */
- if (main_poly_vf.is_constant (&main_vf)
- && LOOP_VINFO_NITERS_KNOWN_P (main_loop))
- {
- unsigned HOST_WIDE_INT niters
- = LOOP_VINFO_INT_NITERS (main_loop) % main_vf;
- HOST_WIDE_INT other_likely_vf
- = estimated_poly_value (other_vf, POLY_VALUE_LIKELY);
- HOST_WIDE_INT this_likely_vf
- = estimated_poly_value (this_vf, POLY_VALUE_LIKELY);
-
- /* If the epilogue is using partial vectors we account for the
- partial iteration here too. */
- other_factor = niters / other_likely_vf;
- if (LOOP_VINFO_USING_PARTIAL_VECTORS_P (other_loop_vinfo)
- && niters % other_likely_vf != 0)
- other_factor++;
-
- this_factor = niters / this_likely_vf;
- if (LOOP_VINFO_USING_PARTIAL_VECTORS_P (this_loop_vinfo)
- && niters % this_likely_vf != 0)
- this_factor++;
- }
- else
- {
- unsigned HOST_WIDE_INT main_vf_max
- = estimated_poly_value (main_poly_vf, POLY_VALUE_MAX);
- unsigned HOST_WIDE_INT other_vf_max
- = estimated_poly_value (other_vf, POLY_VALUE_MAX);
- unsigned HOST_WIDE_INT this_vf_max
- = estimated_poly_value (this_vf, POLY_VALUE_MAX);
-
- other_factor = CEIL (main_vf_max, other_vf_max);
- this_factor = CEIL (main_vf_max, this_vf_max);
-
- /* If the loop is not using partial vectors then it will iterate one
- time less than one that does. It is safe to subtract one here,
- because the main loop's vf is always at least 2x bigger than that
- of an epilogue. */
- if (!LOOP_VINFO_USING_PARTIAL_VECTORS_P (other_loop_vinfo))
- other_factor -= 1;
- if (!LOOP_VINFO_USING_PARTIAL_VECTORS_P (this_loop_vinfo))
- this_factor -= 1;
- }
-
- /* Compute the costs by multiplying the inside costs with the factor and
- add the outside costs for a more complete picture. The factor is the
- amount of times we are expecting to iterate this epilogue. */
- other_cost = other->body_cost () * other_factor;
- this_cost = this->body_cost () * this_factor;
- other_cost += other->outside_cost ();
- this_cost += this->outside_cost ();
- return this_cost < other_cost;
-}
-
-/* A <=>-style subroutine of better_main_loop_than_p. Check whether we can
- determine the return value of better_main_loop_than_p by comparing the
- inside (loop body) costs of THIS and OTHER. Return:
-
- * -1 if better_main_loop_than_p should return true.
- * 1 if better_main_loop_than_p should return false.
- * 0 if we can't decide. */
-
-int
-vector_costs::compare_inside_loop_cost (const vector_costs *other) const
-{
- loop_vec_info this_loop_vinfo = as_a<loop_vec_info> (this->m_vinfo);
- loop_vec_info other_loop_vinfo = as_a<loop_vec_info> (other->m_vinfo);
-
- struct loop *loop = LOOP_VINFO_LOOP (this_loop_vinfo);
- gcc_assert (LOOP_VINFO_LOOP (other_loop_vinfo) == loop);
-
- poly_int64 this_vf = LOOP_VINFO_VECT_FACTOR (this_loop_vinfo);
- poly_int64 other_vf = LOOP_VINFO_VECT_FACTOR (other_loop_vinfo);
-
- /* Limit the VFs to what is likely to be the maximum number of iterations,
- to handle cases in which at least one loop_vinfo is fully-masked. */
- HOST_WIDE_INT estimated_max_niter = likely_max_stmt_executions_int (loop);
- if (estimated_max_niter != -1)
- {
- if (known_le (estimated_max_niter, this_vf))
- this_vf = estimated_max_niter;
- if (known_le (estimated_max_niter, other_vf))
- other_vf = estimated_max_niter;
- }
-
- /* Check whether the (fractional) cost per scalar iteration is lower or
- higher: this_inside_cost / this_vf vs. other_inside_cost / other_vf. */
- poly_int64 rel_this = this_loop_vinfo->vector_costs->body_cost () * other_vf;
- poly_int64 rel_other
- = other_loop_vinfo->vector_costs->body_cost () * this_vf;
-
- HOST_WIDE_INT est_rel_this_min
- = estimated_poly_value (rel_this, POLY_VALUE_MIN);
- HOST_WIDE_INT est_rel_this_max
- = estimated_poly_value (rel_this, POLY_VALUE_MAX);
-
- HOST_WIDE_INT est_rel_other_min
- = estimated_poly_value (rel_other, POLY_VALUE_MIN);
- HOST_WIDE_INT est_rel_other_max
- = estimated_poly_value (rel_other, POLY_VALUE_MAX);
-
- /* Check first if we can make out an unambigous total order from the minimum
- and maximum estimates. */
- if (est_rel_this_min < est_rel_other_min
- && est_rel_this_max < est_rel_other_max)
- return -1;
-
- if (est_rel_other_min < est_rel_this_min
- && est_rel_other_max < est_rel_this_max)
- return 1;
-
- /* When other_loop_vinfo uses a variable vectorization factor,
- we know that it has a lower cost for at least one runtime VF.
- However, we don't know how likely that VF is.
-
- One option would be to compare the costs for the estimated VFs.
- The problem is that that can put too much pressure on the cost
- model. E.g. if the estimated VF is also the lowest possible VF,
- and if other_loop_vinfo is 1 unit worse than this_loop_vinfo
- for the estimated VF, we'd then choose this_loop_vinfo even
- though (a) this_loop_vinfo might not actually be better than
- other_loop_vinfo for that VF and (b) it would be significantly
- worse at larger VFs.
-
- Here we go for a hacky compromise: pick this_loop_vinfo if it is
- no more expensive than other_loop_vinfo even after doubling the
- estimated other_loop_vinfo VF. For all but trivial loops, this
- ensures that we only pick this_loop_vinfo if it is significantly
- better than other_loop_vinfo at the estimated VF. */
- if (est_rel_other_min != est_rel_this_min
- || est_rel_other_max != est_rel_this_max)
- {
- HOST_WIDE_INT est_rel_this_likely
- = estimated_poly_value (rel_this, POLY_VALUE_LIKELY);
- HOST_WIDE_INT est_rel_other_likely
- = estimated_poly_value (rel_other, POLY_VALUE_LIKELY);
-
- return est_rel_this_likely * 2 <= est_rel_other_likely ? -1 : 1;
- }
-
- return 0;
-}
-
-/* A <=>-style subroutine of better_main_loop_than_p, used when there is
- nothing to choose between the inside (loop body) costs of THIS and OTHER.
- Check whether we can determine the return value of better_main_loop_than_p
- by comparing the outside (prologue and epilogue) costs of THIS and OTHER.
- Return:
-
- * -1 if better_main_loop_than_p should return true.
- * 1 if better_main_loop_than_p should return false.
- * 0 if we can't decide. */
-
-int
-vector_costs::compare_outside_loop_cost (const vector_costs *other) const
-{
- auto this_outside_cost = this->outside_cost ();
- auto other_outside_cost = other->outside_cost ();
- if (this_outside_cost != other_outside_cost)
- return this_outside_cost < other_outside_cost ? -1 : 1;
-
- return 0;
-}