GSoC topic: Implement hot cold splitting at GIMPLE IR level

2020-03-02 Thread Aditya K
Hi Everyone, I was one of the original authors of hot cold splitting optimization in LLVM. I was wondering if implementing a region based hot cold splitting optimization would be useful in GCC? We already have optimal implementation of SESE region detection in GCC (https://github.com/gcc-mirror/

Fw: GSoC topic: Implement hot cold splitting at GIMPLE IR level

2020-03-03 Thread Aditya K
2:47 AM To: Aditya K ; gcc@gcc.gnu.org Cc: Jan Hubicka Subject: Re: GSoC topic: Implement hot cold splitting at GIMPLE IR level Hello. Thank you for idea. I would like to provide some comments about what GCC can currently do and I'm curious we need something extra on top of what we do. Righ

Combined top-down and bottom-up instruction scheduler

2015-09-08 Thread Aditya K
IIUC, in the haifa-sched.c, the default scheduling algorithm seems to be top-down (before reload). Is there a way to schedule the other way (bottom up), or both ways? As a use case for bottom-up or some other heuristic: Currently, the first priority in the selection is given to the longest path,

RE: Combined top-down and bottom-up instruction scheduler

2015-09-08 Thread Aditya K
> Subject: Re: Combined top-down and bottom-up instruction scheduler > To: hiradi...@msn.com; gcc@gcc.gnu.org > CC: vmaka...@redhat.com > From: l...@redhat.com > Date: Tue, 8 Sep 2015 12:51:24 -0600 > > On 09/08/2015 12:39 PM, Aditya

Help with gcc-plugin (Traverse all loops inside function)

2015-09-15 Thread Aditya K
I started with one of the test cases in the plugin testsuite "def_plugin.c". Pasted the code for convenience. I want to traverse all the loops in a function. Maybe use, loops_for_fn (DECL_STRUCT_FUNCTION (fndef)), but this does not seem to work. /* Callback function to invoke after GCC finishe

RE: Proposal for adding splay_tree_find (to find elements without updating the nodes).

2015-03-09 Thread Aditya K
> Date: Mon, 9 Mar 2015 15:26:26 -0400 > From: tbsau...@tbsaunde.org > To: gcc@gcc.gnu.org > Subject: Re: Proposal for adding splay_tree_find (to find elements without > updating the nodes). > > On Mon, Mar 09, 2015 at 06:59:10PM +, vax mzn wrote: >>

RE: Proposal for adding splay_tree_find (to find elements without updating the nodes).

2015-03-09 Thread Aditya K
> From: stevenb@gmail.com > Date: Mon, 9 Mar 2015 23:59:52 +0100 > Subject: Re: Proposal for adding splay_tree_find (to find elements without > updating the nodes). > To: hiradi...@msn.com > CC: gcc@gcc.gnu.org > > On Mon, Mar 9, 2015 at 7:59 PM, vax

RE: Proposal for adding splay_tree_find (to find elements without updating the nodes).

2015-03-13 Thread Aditya K
--- > Date: Tue, 10 Mar 2015 11:20:07 +0100 > Subject: Re: Proposal for adding splay_tree_find (to find elements without > updating the nodes). > From: richard.guent...@gmail.com > To: stevenb@gmail.com > CC: hiradi...@msn.com; gcc@gcc.gnu.org > > On Mon, Ma

RE: Proposal for adding splay_tree_find (to find elements without updating the nodes).

2015-03-13 Thread Aditya K
You're right. I'll change this to: /* A stable comparison functor to sort trees.  */ struct tree_compare_decl_uid {   bool  operator ()(const tree &xa, const tree &xb) const   {     return DECL_UID (xa) < DECL_UID (xb);   } }; New patch attached. Thanks, -Aditya --

RE: Examples of GCC plugins

2015-03-14 Thread Aditya K
> Date: Sat, 14 Mar 2015 18:22:29 +0300 > From: malts...@gmail.com > To: gcc@gcc.gnu.org; san...@codesourcery.com > Subject: Examples of GCC plugins > > Hi, all. > > When I first tried to write a simple plugin for GCC, it turned out that > existing docs on

RE: Proposal for another approach for Loop transformation with conditional in Loops.

2015-03-14 Thread Aditya K
> From: ajit.kumar.agar...@xilinx.com > To: l...@redhat.com; richard.guent...@gmail.com; gcc@gcc.gnu.org > CC: vin...@xilinx.com; shail...@xilinx.com; vid...@xilinx.com; > nmek...@xilinx.com > Subject: Proposal for another approach for Loop transformation

RE: Proposal for another approach for Loop transformation with conditional in Loops.

2015-03-14 Thread Aditya K
> From: ajit.kumar.agar...@xilinx.com > To: l...@redhat.com; richard.guent...@gmail.com; gcc@gcc.gnu.org > CC: vin...@xilinx.com; shail...@xilinx.com; vid...@xilinx.com; > nmek...@xilinx.com > Subject: Proposal for another approach for Loop transformation

RE: Proposal for adding splay_tree_find (to find elements without updating the nodes).

2015-03-15 Thread Aditya K
strap enabled), I'm not sure if 'omp' related tests were exercised. I'm still unfamiliar with several components of gcc. Any pointers on how to ensure all tests were run, would be useful. -Aditya > > thanks! > > Trev > > On Fri, Mar 13, 2015

RE: Proposal for adding splay_tree_find (to find elements without updating the nodes).

2015-03-16 Thread Aditya K
> From: lopeziba...@gmail.com > Date: Mon, 16 Mar 2015 15:16:55 +0100 > Subject: Re: Proposal for adding splay_tree_find (to find elements without > updating the nodes). > To: tbsau...@tbsaunde.org; gcc@gcc.gnu.org; hiradi...@msn.com > >>> Thanks for the

RE: Proposal for adding splay_tree_find (to find elements without updating the nodes).

2015-03-16 Thread Aditya K
> From: lopeziba...@gmail.com > Date: Mon, 16 Mar 2015 17:04:58 +0100 > Subject: Re: Proposal for adding splay_tree_find (to find elements without > updating the nodes). > To: jwakely@gmail.com > CC: hiradi...@msn.com; tbsau...@tbsaunde.org; gcc@gcc.g

RE: Proposal for adding splay_tree_find (to find elements without updating the nodes).

2015-03-16 Thread Aditya K
> From: hiradi...@msn.com > To: lopeziba...@gmail.com; jwakely@gmail.com > CC: tbsau...@tbsaunde.org; gcc@gcc.gnu.org > Subject: RE: Proposal for adding splay_tree_find (to find elements without > updating the nodes). > Date: Mon, 16 Mar 2015 18:45:22

RE: Proposal for adding splay_tree_find (to find elements without updating the nodes).

2015-03-18 Thread Aditya K
gnu.org > > On Mon, Mar 16, 2015 at 4:33 AM, Aditya K wrote: >> >> >> >>> Date: Sun, 15 Mar 2015 02:32:23 -0400 >>> From: tbsau...@tbsaunde.org >>> To: gcc@gcc.gnu.org >>> Subject: Re: Proposa

RE: Proposal for adding splay_tree_find (to find elements without updating the nodes).

2015-03-18 Thread Aditya K
.@gmail.com; tbsau...@tbsaunde.org; gcc@gcc.gnu.org > > On 18 March 2015 at 21:20, Aditya K wrote: >> >> >> >>> Date: Wed, 18 Mar 2015 11:50:16 +0100 >>> Subject: Re: Proposal for adding splay_tree_find (to find elemen

RE: Proposal for adding splay_tree_find (to find elements without updating the nodes).

2015-03-30 Thread Aditya K
athamesh.kulka...@linaro.org >> To: hiradi...@msn.com >> CC: richard.guent...@gmail.com; tbsau...@tbsaunde.org; gcc@gcc.gnu.org >> >> On 18 March 2015 at 21:20, Aditya K wrote: >>> >>> >>> >>>>

RE: Proposal for adding splay_tree_find (to find elements without updating the nodes).

2015-03-31 Thread Aditya K
out > updating the nodes). > Date: Tue, 31 Mar 2015 09:09:24 +0200 > > Hi! > > On Mon, 30 Mar 2015 22:28:41 +, Aditya K wrote: >> So I have modified the patch to use hash_map instead of std::map. The patch >> is attached. >> >> However, I got one regres

RE: AutoFDO profile toolchain is open-sourced

2015-04-21 Thread Aditya K
After patching linux perf. This script collects creates a coverage file (e.g., for linpack) which can be used for fdo. gcov=linpack-x86.gcov MAKE='make' # x86 x86() { CC=/usr/bin/gcc CXX=/usr/bin/g++ export CFLAGS="-Ofast -g3 -static" export CPPFLAGS=$CFLAGS $MAKE -C $SRC/SingleSource/Benchm

RE: Compiler warnings while compiling gcc with clang‏

2015-05-05 Thread Aditya K
> CC: hiradi...@msn.com; gcc@gcc.gnu.org > From: pins...@gmail.com > Subject: Re: Compiler warnings while compiling gcc with clang‏ > Date: Tue, 5 May 2015 01:11:38 -0700 > To: renato.go...@linaro.org > > > > > >> On May 5, 2015, at 1:00 AM, Renato Golin

RE: Compiler warnings while compiling gcc with clang‏

2015-05-05 Thread Aditya K
~ ../../gcc/gcov-tool.c:462:10: note: initialize the variable 'ret' to silence this warning   int ret;          ^           = 0 I think I can fix few of these if we want them to be fixed. For some e.g. ( gcc/gcov-tool.c:225:7: warning: array index 1 is past the end of the

RE: Compiler warnings while compiling gcc with clang‏

2015-05-05 Thread Aditya K
gt; > >> On May 5, 2015, at 8:13 PM, Aditya K wrote: >> >> So, I analyzed other warnings and following is the list of relevant warning >> that I could collect. Hope this is useful. >> >> >> gcc/ipa-icf.c:508:12: warning: logical not is only applied to

RE: AutoFDO profile toolchain is open-sourced

2015-05-08 Thread Aditya K
> Date: Fri, 8 May 2015 11:19:12 -0700 > Subject: Re: AutoFDO profile toolchain is open-sourced > From: de...@google.com > To: i.palac...@samsung.com > CC: davi...@google.com; hubi...@ucw.cz; gcc@gcc.gnu.org; > v.bari...@samsung.com; dnovi...@google.com;

RE: AutoFDO profile toolchain is open-sourced

2015-05-12 Thread Aditya K
Recently we found an ICE while compiling a program with auto-fdo (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65972). The ICE was caused because SSA is not in a valid state when the early inliner is run. The fix was to update_ssa before running the early inliner (https://gcc.gnu.org/bugzilla/sh

Re: Fw: GSoC topic: Implement hot cold splitting at GIMPLE IR level

2020-03-16 Thread Aditya K via Gcc
> > 2) ipa-split is very simplistic and only splits when there is no value >computed in header of function used in the tail. We should support > adding extra parameters for values computed and do more general SESE >outlining > Note that we do SESE outlining for openMP but this code is

Re: Fw: GSoC topic: Implement hot cold splitting at GIMPLE IR level

2020-03-17 Thread Aditya K via Gcc
reuse them. -Aditya From: Jakub Jelinek Sent: Monday, March 16, 2020 5:19:16 PM To: Aditya K Cc: Jan Hubicka ; gcc@gcc.gnu.org Subject: Re: Fw: GSoC topic: Implement hot cold splitting at GIMPLE IR level On Mon, Mar 16, 2020 at 11:11:14PM +, Aditya K via Gcc