https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80474
--- Comment #5 from Jan Smets <jan.smets at nokia dot com> --- We get 'good' code on 7.1/trunk since 2016-04-29 Patrick Palka <ppa...@gcc.gnu.org> tree-ssa-threadedge.c (simplify_control_stmt_condition): Split out into ... simplify_control_stmt_condition_1): ... here. Recurse into BIT_AND_EXPRs and BIT_IOR_EXPRs. but that just makes it latent.