search for: deadargelimination

Displaying 7 results from an estimated 7 matches for "deadargelimination".

2017 Jan 30
2
llvm return value propagation & asm
On Mon, Jan 30, 2017 at 9:34 AM, Reid Kleckner via llvm-dev <llvm-dev at lists.llvm.org> wrote: > We need to disable most forms of IPO on naked functions. We already do this > in DeadArgElimination.cpp. We need to do it in more places. > +1. Carlo, can you please open a bug? -- Davide "There are no solved problems; there are only problems that are more or less solved" -- Henri Poincare
2017 Jan 31
0
llvm return value propagation & asm
On 2017-01-30 18:41, Davide Italiano wrote: > On Mon, Jan 30, 2017 at 9:34 AM, Reid Kleckner via llvm-dev > <llvm-dev at lists.llvm.org> wrote: >> We need to disable most forms of IPO on naked functions. We already do this >> in DeadArgElimination.cpp. We need to do it in more places. >> > > +1. Carlo, can you please open a bug? > Done https://llvm.org/bugs/show_bug.cgi?id=31811 -- Carlo Kok RemObjects Software
2017 Jan 27
2
llvm return value propagation & asm
Hi, I'm trying to have a pure asm function (non inlined) that returns it's own value to the caller. ; Function Attrs: naked noinline optnone define i32 @callcatch(i32, i32) #3 !dbg !10103 { BasicBlock8472: call void asm "\0D\0Apushl %ebp\0D\0Amovl 8(%esp),%eax\0D\0Amovl 12(%esp), %ebp\0D\0Acalll *%eax\0D\0Apopl %ebp\0D\0Aretl\0D\0A", ""(), !dbg !10104, !srcloc
2016 Jul 14
2
clone function
Hi, I am trying to use the CloneFunction from llvm/Transforms/Utils/Cloning.h and I don't understand how the ValueToValueMapTy argument should be initialized. For instance, let say I want to clone this function (to add an argument): define void @function(i32 %i) #0 { entry: %i.addr = alloca i32, align 4 store i32 %i, i32* %i.addr, align 4 ret void } to another function which should,
2016 Jul 15
2
clone function
...I have in my source files actually... > > You have to design this as a two-part process: > > 1) Clone the function (if you need to keep the original around) > 2) Change the function signature. For this there is no helper (that I know > of), you may look at how it is done in the DeadArgElimination pass. > Yes that's the hard part. And you can't clone the function if there is arguments. The instructions using these arguments will have Values refering to another function body which triggers errors like: Referring to an argument in another function! store i8* %ptr, i8** %ptr.addr...
2013 Sep 25
0
[LLVMdev] [Polly] Move Polly's execution later
...efforts to investigate why Polly cannot be placed in these points. At last, I also investigated the basic solution that move Polly immediately before "CallGraph SCC passes" which is a very early stage in module level optimizations. However, there are still some pre-executed basic passes (DeadArgElimination/InstructionCombining/CFGSimplification),  which may reduce Polly canonicalization passes . Preliminary testing shows no extra error happens in LLVM test-suite and detailed evaluation is running. Hope we can get detailed results after several hours's running. Best, Star Tan At 2013-09-22 13:02...
2013 Sep 22
4
[LLVMdev] [Polly] Move Polly's execution later
Hi Tobias, At 2013-09-19 22:59:25,"Tobias Grosser" <tobias at grosser.es> wrote: >On 09/19/2013 04:46 PM, Star Tan wrote: >> Hi Tobias, >> >> >> I am trying to move Polly later. >> >> >> LLVM provides some predefined ExtensionPointTy: >> EP_EarlyAsPossible, >> EP_ModuleOptimizerEarly, >>