Re: [PATCH] RISC-V: Allow const0_rtx operand in max/min

2023-03-05 Thread Kito Cheng via Gcc-patches
Committed, thanks! On Tue, Feb 28, 2023 at 12:36 PM Sinan wrote: > > From 73e743348a49a7fffcf2e328b8179e8dbbc3b2b4 Mon Sep 17 00:00:00 2001 > From: Lin Sinan > Date: Tue, 28 Feb 2023 00:44:55 +0800 > Subject: [PATCH] RISC-V: Allow const0_rtx operand in max/min > > Optimize

[PATCH] RISC-V: Allow const0_rtx operand in max/min

2023-02-27 Thread Sinan via Gcc-patches
From 73e743348a49a7fffcf2e328b8179e8dbbc3b2b4 Mon Sep 17 00:00:00 2001 From: Lin Sinan Date: Tue, 28 Feb 2023 00:44:55 +0800 Subject: [PATCH] RISC-V: Allow const0_rtx operand in max/min Optimize cases that use max[u]/min[u] against a zero constant. E.g., the case int f(int x) { return x >= 0