Re: [PATCH] PR tree-optimization/102232 Adding a missing pattern to match.pd
authorNavid Rahimi <navidrahimi@microsoft.com>
Tue, 23 Nov 2021 03:07:35 +0000 (22:07 -0500)
committerJeff Law <jeffreyalaw@gmail.com>
Tue, 23 Nov 2021 03:07:35 +0000 (22:07 -0500)
commitdf1a0d526e2e4c75311345c0b73ce8483e243899
treeb607a1c5cb532d816d2b194afcee57e0ebb2635d
parent630686f93f0018fa1ef128aa673fddd302cc83e1
Re: [PATCH] PR tree-optimization/102232 Adding a missing pattern to match.pd

PR tree-optimization/102232

gcc/
* match.pd (x * (1 + y / x) - y) -> (x - y % x): New optimization.

gcc/testsuite/

* gcc.dg/tree-ssa/pr102232.c: Testcase for this optimization.
gcc/match.pd
gcc/testsuite/gcc.dg/tree-ssa/pr102232.c [new file with mode: 0644]