diff options
author | Chris Lattner <sabre@nondot.org> | 2003-07-23 03:32:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-07-23 03:32:11 +0000 |
commit | e1a875ef29106e9546fd3889eb27a39cad577cdf (patch) | |
tree | 57cfc12bc37a973c8029b263b7a0d3a6902ddb15 /test/Transforms/TailDup | |
parent | 1ba5bcd1ae23805b41e28d3cf62a11b18b465348 (diff) |
New testcase that caused infinite loop in taildup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7242 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/TailDup')
-rw-r--r-- | test/Transforms/TailDup/2003-07-22-InfiniteLoop.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Transforms/TailDup/2003-07-22-InfiniteLoop.ll b/test/Transforms/TailDup/2003-07-22-InfiniteLoop.ll new file mode 100644 index 0000000000..3e6ca09dae --- /dev/null +++ b/test/Transforms/TailDup/2003-07-22-InfiniteLoop.ll @@ -0,0 +1,13 @@ +; RUN: as < %s | opt -tailduplicate -disable-output + +implementation + +int %sum() { +entry: + br label %loopentry + +loopentry: + %i.0 = phi int [ 1, %entry ], [ %tmp.3, %loopentry ] + %tmp.3 = add int %i.0, 1 + br label %loopentry +} |