PR19267 - Add a feature to clobber non-calle-save regs in the prolog.

This is a feature I’m considering for the LLVM backend. Feel free to provide input in the following PR.

llvm.org/pr19267 - Add a feature to clobber non-callee-save regs in the prolog.

I’m copying llvm-dev because it seems like something that others must have already done or at least thought about at some point.

-Andy

Sounds like it could be useful for debugging purposes.

If you implement it, I'd turn it on for some of our local verification runs. Finding runtime calling convention bugs cheaply is always nice. :slight_smile:

Philip

From: "Philip Reames" <listmail@philipreames.com>
To: "Andrew Trick" <atrick@apple.com>, "llvmdev@cs.uiuc.edu Dev" <llvmdev@cs.uiuc.edu>
Sent: Thursday, March 27, 2014 6:15:01 PM
Subject: Re: [LLVMdev] PR19267 - Add a feature to clobber non-calle-save regs in the prolog.

Sounds like it could be useful for debugging purposes.

If you implement it, I'd turn it on for some of our local
verification
runs. Finding runtime calling convention bugs cheaply is always
nice. :slight_smile:

+1

-Hal

From: "Philip Reames" <listmail@philipreames.com>
To: "Andrew Trick" <atrick@apple.com>, "llvmdev@cs.uiuc.edu Dev" <llvmdev@cs.uiuc.edu>
Sent: Thursday, March 27, 2014 6:15:01 PM
Subject: Re: [LLVMdev] PR19267 - Add a feature to clobber non-calle-save regs in the prolog.

Sounds like it could be useful for debugging purposes.

If you implement it, I'd turn it on for some of our local
verification
runs. Finding runtime calling convention bugs cheaply is always
nice. :slight_smile:

+1

Reminds me of the order of evaluation patch that Nick had for the
front end? I.e. shake out dependencies that way as well.

(That said, as long as it's not too weighty to keep maintained I'm in
favor of such things being added.)

-eric