[Bug target/82942] Generate vzeroupper with -mavx512f -mno-avx512er -O2
ubizjak at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Nov 10 17:37:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82942
--- Comment #1 from Uroš Bizjak <ubizjak at gmail dot com> ---
class pass_insert_vzeroupper : public rtl_opt_pass
{
public:
pass_insert_vzeroupper(gcc::context *ctxt)
: rtl_opt_pass(pass_data_insert_vzeroupper, ctxt)
{}
/* opt_pass methods: */
virtual bool gate (function *)
{
return TARGET_AVX && !TARGET_AVX512F
&& TARGET_VZEROUPPER && flag_expensive_optimizations
&& !optimize_size;
}
virtual unsigned int execute (function *)
{
return rest_of_handle_insert_vzeroupper ();
}
}; // class pass_insert_vzeroupper
More information about the Gcc-bugs
mailing list