search for: infloop

Displaying 20 results from an estimated 25 matches for "infloop".

2015 Jun 28
5
[LLVMdev] readonly and infinite loops
> You dropped some context... > A daemon program wouldn't be readonly. An infinite loop can be. Right. To prevent miscommunication, here is a quick analysis of a problematic (IMO) example: We start with ``` define void @infloop(i1 %c) { entry: br i1 %c, label %l, label %e l: br label %l e: ret void } define void @main_func() { entry: call void @infloop(i1 1) ret void } ``` In this program `@main_func`, when called, will loop infinitely. If we run this program through `opt -functionattrs -prune-eh -earl...
2015 Jun 28
2
[LLVMdev] readonly and infinite loops
On Sat, Jun 27, 2015 at 2:46 PM, Daniel Berlin <dberlin at dberlin.org> wrote: > In C, dunno, but in LLVM, it means they aren't readonly :) In that case, -functionattrs needs to be fixed: define void @infloop() { entry: br label %l l: br label %l } == opt -functionattrs ==> ; Function Attrs: readnone define void @infloop() #0 { entry: br label %l l: ; preds = %l, %entry br label %l } attributes #0 = { readnone } -- Sanjoy
2015 Feb 18
13
[LLVMdev] [3.6 Release] RC4 has been tagged
Hello testers, RC4 has just been tagged (at r229782 on the branch). RC3 was disqualified due to an infloop that Duncan reported, and fixed in r229421. That, fixes for a few scary X86 bugs, a GCC5 bootstrap problem (PR22625), and parts of PR22589 is included in RC4. Baring any showstoppers, this release candidate will be promoted to release. Please let me know how it looks and upload binaries as usual....
2017 Jun 13
2
RFC: Dynamic dominators
...but it's compatible with some other implementation by Loucas -- the > > author of the algorithm. > > I tried to use a bitcode file directly: > > [grosser at greina0 build]$ cat ../test/Analysis/RegionInfo/test.ll > define void @foo() { > entry: > br i1 1, label %infloop, label %next > > infloop: > br label %infloop > > next: > ret void > > [grosser at greina0 build]$ bin/dominators > ../test/Analysis/RegionInfo/test.bc > > New Dominator Tree: > [0] %virtual_entry IO{0, 7}, R{nullptr}, P{nullptr} > [1] %entry_n_1...
2015 Feb 20
2
[LLVMdev] [3.6 Release] Release Candidate 4 available
Hello all, Source and binaries for LLVM 3.6.0-rc4 are available at http://llvm.org/pre-releases/3.6.0/ There were only a few new patches since rc3: an infloop fix (r229421) a few X86 fixes (r229555, r229561 and r229564), a GCC 5 bootstrap fix (PR22625) and performance regression fix for PR22589. If this one looks good, it will be promoted to 'final' sometime next week. Thanks again to the testing team who test and produce binaries for the relea...
2015 Jun 28
2
[LLVMdev] readonly and infinite loops
...> You dropped some context... > > > A daemon program wouldn't be readonly. An infinite loop can be. > > Right. > > To prevent miscommunication, here is a quick analysis of a > problematic > (IMO) example: > > We start with > > ``` > define void @infloop(i1 %c) { > entry: > br i1 %c, label %l, label %e > > l: > br label %l > > e: > ret void > } > > define void @main_func() { > entry: > call void @infloop(i1 1) > ret void > } > ``` > > In this program `@main_func`, when called, wil...
2008 Oct 28
1
[LLVMdev] Requiring a ModulePass to be run from a FunctionPass
Hi, I have a FunctionPass that requires a ModulePass using addRequiredById(). When I start opt it infloops somewhere in PMDataManager::findAnalysisPass. Should I open a bug, or is this a known issue (i.e. I am doing something wrong)? Is there a workaround? My modulepass just assigns unique numbers to basicblocks (like StableBasicBlockNumbering, but unique per Module) I could do that with a functionp...
2015 Feb 26
3
[LLVMdev] [3.6 Release] RC4 has been tagged
...gt; Cc: llvmdev; cfe-dev >> > > Subject: [3.6 Release] RC4 has been tagged >> > > >> > > Hello testers, >> > > >> > > RC4 has just been tagged (at r229782 on the branch). >> > > >> > > RC3 was disqualified due to an infloop that Duncan reported, and fixed >> > > in r229421. That, fixes for a few scary X86 bugs, a GCC5 bootstrap >> > > problem (PR22625), and parts of PR22589 is included in RC4. >> > > >> > > Baring any showstoppers, this release candidate will be promoted...
2008 Oct 08
0
[LLVMdev] [PATCH] Lost instcombine opportunity: "or"s of "icmp"s (commutability)
...ving it because returning it will have it added back in to replace other uses. I also added a couple test cases pass with the new InstructionCombining changes (the old code only passes one of the added tests). Also, this change exposes some simplification for test/Transforms/InstCombine/2006-05-06-Infloop.ll. The original code truncates two i32 values to i8 and eventually ORs them together. The patch has it optimized to OR the two values first then truncate a single value. %tmp264not = xor i8 %tmp264, -1 ; <i8> [#uses=1] %tmp212 = trunc i32 %iftmp.36.0 to i8 ; <i8> [#uses=2] %...
2015 Feb 25
2
[LLVMdev] [3.6 Release] RC4 has been tagged
...tian > > Dreßler; Daniel Sanders; Nikola Smiljanić > > Cc: llvmdev; cfe-dev > > Subject: [3.6 Release] RC4 has been tagged > > > > Hello testers, > > > > RC4 has just been tagged (at r229782 on the branch). > > > > RC3 was disqualified due to an infloop that Duncan reported, and fixed > > in r229421. That, fixes for a few scary X86 bugs, a GCC5 bootstrap > > problem (PR22625), and parts of PR22589 is included in RC4. > > > > Baring any showstoppers, this release candidate will be promoted to > release. > > > &gt...
2008 Oct 08
3
[LLVMdev] Lost instcombine opportunity: "or"s of "icmp"s (commutability)
instcombine can handle certain orders of "icmp"s that are "or"ed together: x != 5 OR x > 10 OR x == 8 becomes.. x != 5 OR x == 8 becomes.. x != 5 However, a different ordering prevents the simplification: x == 8 OR x > 10 OR x != 5 becomes.. %or.eq8.gt10 OR x != 5 and that can't be simplified because we now have an "or" OR "icmp". What would I
2015 Feb 26
0
[LLVMdev] [3.6 Release] RC4 has been tagged
...;>> > > Subject: [3.6 Release] RC4 has been tagged >>> > > >>> > > Hello testers, >>> > > >>> > > RC4 has just been tagged (at r229782 on the branch). >>> > > >>> > > RC3 was disqualified due to an infloop that Duncan reported, and >>> > > fixed >>> > > in r229421. That, fixes for a few scary X86 bugs, a GCC5 bootstrap >>> > > problem (PR22625), and parts of PR22589 is included in RC4. >>> > > >>> > > Baring any showstoppers,...
2015 Feb 26
0
[LLVMdev] [3.6 Release] RC4 has been tagged
...Nikola Smiljanić > > > Cc: llvmdev; cfe-dev > > > Subject: [3.6 Release] RC4 has been tagged > > > > > > Hello testers, > > > > > > RC4 has just been tagged (at r229782 on the branch). > > > > > > RC3 was disqualified due to an infloop that Duncan reported, and fixed > > > in r229421. That, fixes for a few scary X86 bugs, a GCC5 bootstrap > > > problem (PR22625), and parts of PR22589 is included in RC4. > > > > > > Baring any showstoppers, this release candidate will be promoted to > > re...
2015 Nov 14
3
[lit] RFC: Per test timeout
Hi, A feature I've wanted in lit for a while is a having a timeout per test. Attached are patches that implement this idea. I'm e-mailing llvm-dev rather than llvm-commits because I want to gather more feedback on my initial implementation and hopefully some answers to some unresolved issues with my implementation. Currently in lit you can set a global timeout for all of the tests but
2015 Jun 27
4
[LLVMdev] readonly and infinite loops
On Sat, Jun 27, 2015 at 2:16 PM, Nuno Lopes <nunoplopes at sapo.pt> wrote: > At least in C/C++ that's UB, yes. So you cannot map every turing machine to a valid C/C++ program then. :) Also, does this mean that "daemon" programs that run continuously till they're killed by the OS (using a mechanism that is not visible in C) are effectively undefined? -- Sanjoy >
2019 Jul 09
2
[LLVM] Infinite loop during LLVM InstructionCombining pass optimization
If you're able to reproduce the infinite loop with -O3 then you should be able to dump out the IR that causes `opt -instcombine` to infloop, unless the bug is truly esoteric (e.g. only caused by a specific use-list ordering). Maybe take a closer look at the output from `opt -print-before-all -O3`? Alternatively you can use bugpoint to minimize the IR to get a small reproducer that causes `opt -O3` to hang: http://blog.llvm.org/2015/1...
2009 Nov 03
1
[PATCH libguestfs] hivex: fail upon integer overflow
.... >From 29edcca195d2998ca4a54aacec261752a3bdeb3d Mon Sep 17 00:00:00 2001 From: Jim Meyering <meyering at redhat.com> Date: Tue, 3 Nov 2009 18:50:23 +0100 Subject: [PATCH libguestfs] hivex: fail upon integer overflow * hivex/hivex.c (windows_utf16_to_utf8): Avoid overflow and a potential infloop. --- hivex/hivex.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hivex/hivex.c b/hivex/hivex.c index b522ccf..9c28679 100644 --- a/hivex/hivex.c +++ b/hivex/hivex.c @@ -1031,9 +1031,12 @@ windows_utf16_to_utf8 (/* const */ char *input, size_t len) size_t r = iconv (...
2018 Nov 08
0
[nbdkit PATCH v2 1/5] maint: Improve ./nbdkit option parsing
We had several poor option-parsing actions in our ./nbdkit wrapper: Attempting './nbdkit --filter' went into an infloop with growing memory, because bash treats 'shift 2' when $# as a soft error (which we ignored) without even shifting 1, such that $# never decreases but $args[] continues to grow (dash, on the other hand, follows the POSIX recommendation of a hard error with immediate script termination in a...
2017 Feb 10
2
help me understand how nounwind attribute on functions works?
On Thu, Feb 9, 2017 at 8:41 AM, Reid Kleckner via llvm-dev <llvm-dev at lists.llvm.org> wrote: > On Wed, Feb 8, 2017 at 5:45 PM, Mehdi Amini <mehdi.amini at apple.com> wrote: >> >> What isn’t clear to me still is : why shouldn't this be transitive? >> In the example you’re showing, for a caller of f() in bar, what is the >> advantage of knowing that f()
2015 Feb 26
2
[LLVMdev] [3.6 Release] RC4 has been tagged
...3.6 Release] RC4 has been tagged > >>> > > > >>> > > Hello testers, > >>> > > > >>> > > RC4 has just been tagged (at r229782 on the branch). > >>> > > > >>> > > RC3 was disqualified due to an infloop that Duncan reported, and > >>> > > fixed > >>> > > in r229421. That, fixes for a few scary X86 bugs, a GCC5 bootstrap > >>> > > problem (PR22625), and parts of PR22589 is included in RC4. > >>> > > > >>> > >...