# GCC 12 enables autovectorization at -O2

**URL:** <https://community.tmpdir.org/t/gcc-12-enables-autovectorization-at-o2/330>\
**Category:** Software\
**Created:** [October 8, 2021, 5:36pm UTC](https://community.tmpdir.org/t/gcc-12-enables-autovectorization-at-o2/330 "2021-10-08T17:36:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![khem](https://community.tmpdir.org/user_avatar/community.tmpdir.org/khem/32/5_2.png) [@khem](https://community.tmpdir.org/u/khem)\
**Post date:** [October 8, 2021, 5:36pm UTC](https://community.tmpdir.org/t/gcc-12-enables-autovectorization-at-o2/330/1 "2021-10-08T17:36:25Z")

</div>

Compiler geek inside me is excited about this change in GCC

[https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=2b8453c401b699ed93c085d0413ab4b5030bcdb8](https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=2b8453c401b699ed93c085d0413ab4b5030bcdb8)

This is a ton of work to pull something like this and make it default. ARM chips with neon SIMD benefits and so do all modern chips. I will do some benchmarking with gcc and see how it compares at O2 with gcc11
