Re: [committed][RISC-V] Remove errant hunk of code

2023-08-04 Thread Andrew Pinski via Gcc-patches
On Thu, Aug 3, 2023 at 10:31 PM Jeff Law via Gcc-patches wrote: > > > > On 8/3/23 17:38, Vineet Gupta wrote: > > >> ;-) Actually if you wanted to poke at zicond, the most interesting > >> unexplored area I've come across is the COND_EXPR handling in gimple. > >> When we expand a COND_EXPR into RT

Re: [committed][RISC-V] Remove errant hunk of code

2023-08-03 Thread Jeff Law via Gcc-patches
On 8/3/23 17:38, Vineet Gupta wrote: ;-)  Actually if you wanted to poke at zicond, the most interesting unexplored area I've come across is the COND_EXPR handling in gimple. When we expand a COND_EXPR into RTL the first approach we take is to try movcc in RTL. Unfortunately we don't crea

Re: [committed][RISC-V] Remove errant hunk of code

2023-08-03 Thread Vineet Gupta
On 8/3/23 16:15, Jeff Law wrote: On 8/3/23 16:26, Vineet Gupta wrote: As discussed in Tue call, I definitely have 1 fix to riscv_rtx_costs (), which is worth pondering. It adjusts the cost of consts and helps Hoist GCSE constants (which granted kicks in only at -Os). However it does aff

Re: [committed][RISC-V] Remove errant hunk of code

2023-08-03 Thread Jeff Law via Gcc-patches
On 8/3/23 16:26, Vineet Gupta wrote: As discussed in Tue call, I definitely have 1 fix to riscv_rtx_costs (), which is worth pondering. It adjusts the cost of consts and helps Hoist GCSE constants (which granted kicks in only at -Os). However it does affect codegen in subtle ways since CSE

Re: [committed][RISC-V] Remove errant hunk of code

2023-08-03 Thread Vineet Gupta
On 8/3/23 11:12, Jeff Law via Gcc-patches wrote: On Thu, 03 Aug 2023 08:05:09 PDT (-0700), gcc-patches@gcc.gnu.org wrote: [...] There's a bigger TODO in this space WRT a top-to-bottom evaluation of the costing on RISC-V.  I'm still formulating what that evaluation is going to look like, so don'

Re: [committed][RISC-V] Remove errant hunk of code

2023-08-03 Thread Jeff Law via Gcc-patches
On 8/3/23 11:41, Palmer Dabbelt wrote: On Thu, 03 Aug 2023 08:05:09 PDT (-0700), gcc-patches@gcc.gnu.org wrote: I'm using this hunk locally to more thoroughly exercise the zicond paths due to inaccuracies elsewhere in the costing model.  It was never supposed to be part of the costing commit

Re: [committed][RISC-V] Remove errant hunk of code

2023-08-03 Thread Palmer Dabbelt
x27;d be awesome, I don't think anyone over here will conflict with it any time soon -- aside from whatever falls out of bugs and the generic optimization work, but no way around that sort of thing. Pushed to the trunk. commit d61efa3cd3378be38738bfb5139925d1505c1325 Author: Jeff Law Date:

[committed][RISC-V] Remove errant hunk of code

2023-08-03 Thread Jeff Law via Gcc-patches
so don't hold your breath waiting on it. Pushed to the trunk. commit d61efa3cd3378be38738bfb5139925d1505c1325 Author: Jeff Law Date: Thu Aug 3 10:57:23 2023 -0400 [committed][RISC-V] Remove errant hunk of code I'm using this hunk locally to more thoroughly exercise the zic