Displaying 7 results from an estimated 7 matches for "haoranxu510".
2020 Jun 13
2
target-features attribute prevents inlining?
...nt,
though I'm not sure if this is the right approach, or if there is a better
approach. Could you kindly give some pointers on this question?
Thanks again!
Best,
Haoran
David Blaikie <dblaikie at gmail.com> 于2020年6月12日周五 下午10:17写道:
> On Fri, Jun 12, 2020 at 10:10 PM Haoran Xu <haoranxu510 at gmail.com> wrote:
> >
> > Hi David,
> >
> > Thanks for your quick response!
> >
> > I now understand the reason that inlining cannot be done on functions
> with different target-attributes. Thanks for your explanation!
> >
> > However, I thin...
2020 Aug 14
2
Exceptions and performance
On Thu, Aug 13, 2020 at 6:11 PM Haoran Xu <haoranxu510 at gmail.com> wrote:
>
> Thanks for the insights David!
>
> For your first 3 points, is it correct to understand it as following: the external function prototypes are missing reliable information on whether the function throws and what exceptions it may throw (due to C++'s design...
2020 Aug 14
3
Exceptions and performance
On Thu, Aug 13, 2020 at 6:35 PM Haoran Xu <haoranxu510 at gmail.com> wrote:
>
> Thanks for the reply.
>
>> Sorry, yes. No difference between explicit error handling and
>> exceptions. The difference is in all the functions that don't have
>> explicit error handling but (in the exception-using equivalent code)
>>...
2020 Nov 05
1
LLJIT global constants string becomes invalid in generated code
Hi,
Recently I hit an issue that LLJIT crashes when CodeGenOpt::Less or higher
is given.
After investigation, it turned out that the issue is some global constant
string in the IR, like
> @.str.117 = private unnamed_addr constant [9 x i8] c"lineitem\00", align 1
>
becomes an invalid pointer in the generated code.
> $1 = 0xf7fab054 <error: Cannot access memory at address
2020 Aug 14
2
Exceptions and performance
On Thu, Aug 13, 2020 at 4:38 PM Haoran Xu <haoranxu510 at gmail.com> wrote:
>
> Hello David and Sterling, thanks for the reply!
>
> I have no intention to heat up the discussion, please pardon me if I asked questions that might sound silly to you -- it's just that I truly didn't understand since I'm not expert in llvm or opti...
2020 Jun 13
2
target-features attribute prevents inlining?
Hi David,
Thanks for your quick response!
I now understand the reason that inlining cannot be done on functions with
different target-attributes. Thanks for your explanation!
However, I think I didn't fully understand your solution; it would be nice
if you would like to elaborate a bit more. Here's a bit more info on my
current workflow:
(1) The clang++ compiler builds C++ source file
2020 Aug 13
3
Exceptions and performance
There is a fair amount of dispute and detail here, and real benchmarks can
be difficult to write, because you often end up in arguments about whether
or not the two styles of coding are equivalent or not.
But I agree with Dave--exceptions generally inhibit optimization.
One way to think about this is that, generally speaking, the less the
compiler can prove about a program, the less aggressive