Displaying 4 results from an estimated 4 matches for "builtinunreachable".
2012 Oct 23
3
[LLVMdev] precondition suggestion to LLVM
Thank you, it was what I really was searching for :)
However, I don't know if I well understood. I've find this link in the second link which seemed what i was looking for: http://nondot.org/sabre/LLVMNotes/BuiltinUnreachable.txt .If I put around the code block (inside my function with precondition (x>0 && y>0)) a contruct like that that use __builtin_unreachable:
int foo(int x, int y){
if(x>0 && y>0){ ...function codeblock... } { __builtin_unreachable (); }
}
I can get...
2012 Oct 23
0
[LLVMdev] precondition suggestion to LLVM
...t 9:33 PM, Niko Zarzani <koni10 at hotmail.it> wrote:
> Thank you, it was what I really was searching for :)
>
> However, I don't know if I well understood. I've find this link in the
> second link which seemed what i was looking for:
> http://nondot.org/sabre/LLVMNotes/BuiltinUnreachable.txt .
> If I put around the code block (inside my function with precondition (x>0 &&
> y>0)) a contruct like that that use __builtin_unreachable:
>
> int foo(int x, int y){
>
> if(x>0 && y>0){
> ...function codeblock...
> }
> {...
2012 Oct 23
0
[LLVMdev] precondition suggestion to LLVM
You may want to check this out:
http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-October/053924.html
and also
http://llvm.org/PR810
- xi
On 10/22/12 6:05 PM, Niko Zarzani wrote:
> Hi all,
> Is there any way to tell LLVM some additional information about the
> variables in the code in order to make better optimization?
> For example, if my function has a certain precondition (such
2012 Oct 22
5
[LLVMdev] precondition suggestion to LLVM
Hi all,Is there any way to tell LLVM some additional information about the variables in the code in order to make better optimization?For example, if my function has a certain precondition (such as x>0) then it will be possible to better optimize the code given that information (which the compiler does not know).I am new in this field and I don't know if there are ways to tell the compiler