search for: lowerexpectintrinsic

Displaying 8 results from an estimated 8 matches for "lowerexpectintrinsic".

2016 Apr 22
3
[RFC] remove the llvm.expect intrinsic
...erwritten by PGO data, I think that's a bug independent of the current proposal/patches. > > > 2. To solve that, we created a pass to always transform the intrinsic into > metadata at a very early stage in LLVM. But now every program is paying a > compile-time tax (running the LowerExpectIntrinsic pass) for a feature that > is rarely used. > > Er, what cost? Given this is a single linear pass over the IR - and could > actually be made essentially free by checking to see if the module has any > uses of expect - I'm suspicious of this compile time argument. Have you > a...
2016 Apr 22
4
[RFC] remove the llvm.expect intrinsic
...or existing is to improve perf, but the intrinsic can harm optimization by interfering with transforms in other passes. 2. To solve that, we created a pass to always transform the intrinsic into metadata at a very early stage in LLVM. But now every program is paying a compile-time tax (running the LowerExpectIntrinsic pass) for a feature that is rarely used. A possible front-end replacement transformation for a source-level "builtin_expect()" is in D19299: I think a front-end can always directly create metadata for this kind of programmer hint rather than using an intermediate representation (the intr...
2016 Sep 22
2
Mark code from source to IR
Hi everyone, I am looking at a way to mark part of a source code for an optimisation pass (or how to transfert information from source code to IR). I want to work on C / C++ / Objective-c and Swift. Something like: ... //Begin Optimisation if(i % 2){ printf(“Something”); } //End Optimisation for(int i = 0; i < 10; ++i){ printf("%d, “, i); } printf("\n”); … I have found
2011 Aug 31
2
[LLVMdev] Branch transformation with branch-weight metadata
Hello :) I am looking around __builtin_expect() directive for optimization. ( http://llvm.org/docs/BranchWeightMetadata.html ) Since it is not included in v2.9, I am searching about it on svn trunk. I found that the lowering phase generates branch-weight metadata node for that directive. However, I can't find any code related to the metadata even in the branch transformation code. IMHO, in
2016 Apr 22
2
[RFC] remove the llvm.expect intrinsic
...insic can harm optimization by interfering with >> transforms in other passes. >> >> 2. To solve that, we created a pass to always transform the intrinsic >> into metadata at a very early stage in LLVM. But now every program is >> paying a compile-time tax (running the LowerExpectIntrinsic pass) for a >> feature that is rarely used. >> >> A possible front-end replacement transformation for a source-level >> "builtin_expect()" is in D19299: I think a front-end can always directly >> create metadata for this kind of programmer hint rather than us...
2016 Apr 22
3
[RFC] remove the llvm.expect intrinsic
...ng with >>>> transforms in other passes. >>>> >>>> 2. To solve that, we created a pass to always transform the intrinsic >>>> into metadata at a very early stage in LLVM. But now every program is >>>> paying a compile-time tax (running the LowerExpectIntrinsic pass) for a >>>> feature that is rarely used. >>>> >>>> A possible front-end replacement transformation for a source-level >>>> "builtin_expect()" is in D19299: I think a front-end can always directly >>>> create metadata for thi...
2016 Apr 22
2
[cfe-dev] [RFC] remove the llvm.expect intrinsic
...or existing is to improve perf, but the intrinsic can harm optimization by interfering with transforms in other passes. 2. To solve that, we created a pass to always transform the intrinsic into metadata at a very early stage in LLVM. But now every program is paying a compile-time tax (running the LowerExpectIntrinsic pass) for a feature that is rarely used. A possible front-end replacement transformation for a source-level "builtin_expect()" is in D19299: I think a front-end can always directly create metadata for this kind of programmer hint rather than using an intermediate representation (the intr...
2015 Jul 29
1
[LLVMdev] Error when i am using command make -j4 command in cygwin to compile safecode
...ering directory '/home/NIKHILREDDY/WORK/LLVM_OBJ/lib/Target/X86/InstPrinter' llvm[4]: Compiling X86ATTInstPrinter.cpp for Release+Asserts build llvm[3]: Compiling DwarfUnit.cpp for Release+Asserts build llvm[3]: Compiling InstCombineMulDivRem.cpp for Release+Asserts build llvm[3]: Compiling LowerExpectIntrinsic.cpp for Release+Asserts build llvm[4]: Compiling X86InstComments.cpp for Release+Asserts build llvm[3]: Compiling MemCpyOptimizer.cpp for Release+Asserts build llvm[4]: Compiling X86IntelInstPrinter.cpp for Release+Asserts build llvm[3]: Compiling InstCombinePHI.cpp for Release+Asserts build llvm[3...