https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94234
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Feng Xue <f...@gcc.gnu.org>: https://gcc.gnu.org/g:f9d2def016410a2095df6b399097b482f82064a5 commit r11-3199-gf9d2def016410a2095df6b399097b482f82064a5 Author: Feng Xue <f...@os.amperecomputing.com> Date: Tue Sep 1 17:17:58 2020 +0800 tree-optimization/94234 - Fold plusminus_mult expr with multi-use operands 2020-09-03 Feng Xue <f...@os.amperecomputing.com> gcc/ PR tree-optimization/94234 * genmatch.c (dt_simplify::gen_1): Emit check on final simplification result when "!" is specified on toplevel output expr. * match.pd ((A * C) +- (B * C) -> (A +- B) * C): Allow folding on expr with multi-use operands if final result is a simple gimple value. gcc/testsuite/ PR tree-optimization/94234 * gcc.dg/pr94234-2.c: New test.