https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105295
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Yes trapv is implemented during expansion (from gimple to RTL) and not really optimized.
pinskia at gcc dot gnu.org via Gcc-bugs Sun, 17 Apr 2022 14:18:54 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105295
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Yes trapv is implemented during expansion (from gimple to RTL) and not really optimized.