anv/i965: Use GCM in nir_optimize

There is still some work to do before we can enable GVN.

Shader-db results (SKL):

total instructions in shared programs: 14947192 -> 14947048 (<.01%)
instructions in affected programs: 6138 -> 5994 (-2.35%)
helped: 12
HURT: 0

total cycles in shared programs: 324868402 -> 324755126 (-0.03%)
cycles in affected programs: 303795 -> 190519 (-37.29%)
helped: 15
HURT: 0

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
85 jobs for !597 with gcm_v2 in 26 seconds (queued for 6 seconds)
latest detached
Status Job ID Name Coverage
  Container
manual #5206461
aarch64 manual
arm_build
manual #5206463
manual
arm_test-base
passed #5206464
git_archive

00:00:16

manual #5206456
manual
x86_build-base
manual #5206459
manual
x86_build_old
manual #5206457
manual
x86_test-base
 
  Container 2
created #5206481
android_build
created #5206487
arm64_test
created #5206475
i386_build
created #5206466
kernel+rootfs_amd64
created #5206468
aarch64
kernel+rootfs_arm64
created #5206471
aarch64
kernel+rootfs_armhf
created #5206477
ppc64el_build
created #5206479
s390x_build
created #5206473
x86_build
created #5206483
x86_test-gl
created #5206485
x86_test-vk
 
  Sanity
passed #5206489
check mr

00:00:09

 
  Meson X86 64
created #5206499
meson-clang
created #5206497
meson-classic
created #5206500
meson-clover
created #5206492
meson-clover-testing
created #5206494
meson-gallium
created #5206496
meson-release
created #5206491
meson-testing
created #5206502
meson-vulkan
 
  Scons
created #5206504
allowed to fail
scons-win64
 
  Meson Misc
created #5206506
meson-android
created #5206509
aarch64
meson-arm64
created #5206511
aarch64
meson-arm64-build-test
created #5206507
aarch64
meson-armhf
created #5206513
meson-i386
created #5206519
meson-mingw32-x86_64
created #5206517
kvm
meson-ppc64el
created #5206515
kvm
meson-s390x
 
  Llvmpipe
created #5206527
llvmpipe-gles2
created #5206529
llvmpipe-traces
created #5206521
piglit-cl
created #5206524
piglit-glslparser
created #5206522
piglit-quick_gl
created #5206526
piglit-quick_shader
 
  Softpipe
created #5206538
softpipe-gl
created #5206531
softpipe-gles2
created #5206533
softpipe-gles3
created #5206534
softpipe-gles31 1/2
created #5206536
softpipe-gles31 2/2
 
  Freedreno
created #5206566
google-freedreno-db410c
arm64_a306_gles2
created #5206569
google-freedreno-db410c
arm64_a306_gles3
created #5206571
google-freedreno-db410c
arm64_a306_gles3_options
created #5206574
google-freedreno-db820c
arm64_a530_gles2 1/2
created #5206576
google-freedreno-db820c
arm64_a530_gles2 2/2
created #5206578
google-freedreno-db820c
arm64_a530_gles3
created #5206580
google-freedreno-db820c
arm64_a530_gles31
created #5206547
google-freedreno-cheza
arm64_a630_bypass
created #5206554
google-freedreno-cheza
arm64_a630_gl
created #5206539
google-freedreno-cheza
arm64_a630_gles2
created #5206543
google-freedreno-cheza
arm64_a630_gles3
created #5206541
google-freedreno-cheza
arm64_a630_gles31
created #5206559
google-freedreno-cheza
arm64_a630_gles31_565nozs
created #5206556
google-freedreno-cheza
arm64_a630_gles3_565nozs
created #5206552
google-freedreno-cheza
arm64_a630_gmem
created #5206545
google-freedreno-cheza
arm64_a630_noubo
created #5206550
google-freedreno-cheza
arm64_a630_traces
created #5206561
google-freedreno-cheza
arm64_a630_vk
created #5206564
google-freedreno-cheza
arm64_a630_vk_sysmem
 
  Panfrost
created #5206587
mesa-ci-aarch64-lava-collabora
panfrost-g52-gles2:arm64
created #5206581
mesa-ci-aarch64-lava-collabora
panfrost-t720-gles2:arm64
created #5206582
mesa-ci-aarch64-lava-collabora
panfrost-t760-gles2:armhf
created #5206583
mesa-ci-aarch64-lava-collabora
panfrost-t860-gles2:arm64
created #5206584
mesa-ci-aarch64-lava-collabora
panfrost-t860-gles3:arm64 1/2
created #5206585
mesa-ci-aarch64-lava-collabora
panfrost-t860-gles3:arm64 2/2
created #5206586
mesa-ci-aarch64-lava-collabora
panfrost-t860-traces:arm64
 
  Radv
created #5206588
radv-fossils
 
  Virgl
created #5206593
virgl-gl30-on-gl
created #5206594
virgl-gl31-on-gl
created #5206595
virgl-gl32-on-gl
created #5206589
virgl-gles2-on-gl
created #5206591
virgl-gles31-on-gl 1/2
created #5206592
virgl-gles31-on-gl 2/2
created #5206590
virgl-gles3-on-gl
created #5206596
virgl-traces
 
  Radeonsi
created #5206597
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-gles2:amd64
created #5206599
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-gles31:amd64
created #5206598
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-gles3:amd64
created #5206600
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-traces:amd64