[PATCH] D21561: [IPRA] Set callee saved registers to none for local function when IPRA is enabled.
Vivek Pandya via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 6 11:14:24 PDT 2016
vivekvpandya added inline comments.
================
Comment at: include/llvm/Target/TargetFrameLowering.h:350
@@ +349,3 @@
+ return false;
+ }
+
----------------
mehdi_amini wrote:
> mehdi_amini wrote:
> > Why not looking at the users of F?
> Why has this been marked as done?
Changes have been done on local machine, just waiting for your decision on if UseIPRA to be in TargetPassConfig.h or not?
================
Comment at: test/CodeGen/X86/ipra-local-linkage.ll:19
@@ +18,3 @@
+define void @bar() #0 {
+ %X = add i32 1, 3
+ call void asm sideeffect "movl %r12d, $0", "{r15}~{r12}"(i32 %X) #0
----------------
mehdi_amini wrote:
> vivekvpandya wrote:
> > mehdi_amini wrote:
> > > Take %X by argument?
> > Do you mean as reference?
> I mean as a function parameter, unless I'm missing why an addition is needed here.
Yes addition is not needed I can change load constant value to variable X.
http://reviews.llvm.org/D21561
More information about the llvm-commits
mailing list