Displaying 2 results from an estimated 2 matches for "nbjoerg".
Did you mean:
joerg
2018 Feb 27
2
Missed optimization - spill/load generated instead of reg-to-reg move (and two other questions)
...now
little about compilers, so I wouldn't be surprised if I were wrong.
The other two questions are tangential, so please let me know if I should ask
them somewhere else.
On assembly lines 24 and 46, I think the vtable pointer for the Quad object is
being reloaded every iteration of the loop. nbjoerg on #llvm said that's due to
the possibility of placement new being used somewhere inside the called
function, which makes sense to me. Is there a way to indicate to LLVM that this
will not happen? I tried [[gnu::pure]], since the function doesn't write to
externally-visible memory, but the...
2018 Feb 28
0
Missed optimization - spill/load generated instead of reg-to-reg move (and two other questions)
...mmediately before regalloc as well.
>
> The other two questions are tangential, so please let me know if I
> should ask
> them somewhere else.
>
> On assembly lines 24 and 46, I think the vtable pointer for the Quad
> object is
> being reloaded every iteration of the loop. nbjoerg on #llvm said
> that's due to
> the possibility of placement new being used somewhere inside the called
> function, which makes sense to me. Is there a way to indicate to LLVM
> that this
> will not happen? I tried [[gnu::pure]], since the function doesn't
> write to
&g...