Assembly-level peepholes?

2024-10-04 Thread Sid Maxwell via Gcc
I haven't found anything in my digging, so I'd like to ask if anyone knows of any mechanism in GCC for conducting peephole optimization on generated code. I can imagine doing this as a pass over the generated code from within the backend, or as a separate process between cc1 and as. I'm working w

Re: I have questions regarding the 4.3 codebase...

2024-07-03 Thread Sid Maxwell via Gcc
Awesome, thanks Richard! On Wed, Jul 3, 2024 at 2:44 AM Richard Biener wrote: > On Tue, Jul 2, 2024 at 9:26 PM Sid Maxwell via Gcc > wrote: > > > > I have another gcc 4.3 question. I'm trying to find where in the code > base > > the instrumentation for bas

Re: I have questions regarding the 4.3 codebase...

2024-07-02 Thread Sid Maxwell via Gcc
I have another gcc 4.3 question. I'm trying to find where in the code base the instrumentation for basic block coverage is done. I've tracked down where/how mcount() calls are generated, but I haven't even been able to determine what function(s) are called to increment a basic block's count. I'd

Re: I have questions regarding the 4.3 codebase...

2023-03-23 Thread Sid Maxwell via Gcc
I'll take a look, Paul, thanks. It hadn't occurred to me to compare different machines' uses. -+- Sid On Thu, Mar 23, 2023 at 10:29 AM Paul Koning wrote: > > > > On Mar 23, 2023, at 10:13 AM, Sid Maxwell via Gcc > wrote: > > > > Thanks for reaching o

Re: I have questions regarding the 4.3 codebase...

2023-03-23 Thread Sid Maxwell via Gcc
nsn(gen_extzv(temp, gen_rtx_MEM(SImode, plus_constant(source, n / 4)), GEN_INT(27), GEN_INT(0))); emit_insn(gen_insv(gen_rtx_MEM(SImode, plus_constant(destination, n / 4)), GEN_INT(27), GEN_INT(0), temp)); break; } return 1; } On Thu, Mar 23, 2023 at 3:09 AM Julian Brown wrote

I have questions regarding the 4.3 codebase...

2023-03-22 Thread Sid Maxwell via Gcc
Is there anyone on the list with experience with the gcc 4.3 codebase? I'm currently maintaining a fork of it, with a PDP10 code generator. I've run into an issue involving the transformation of a movmemhi to a single PDP10 instruction (an xblt, if you're curious). The transformation appears to