diff options
Diffstat (limited to 'test/Transforms/Reassociate/2002-07-09-DominanceProblem.ll')
| -rw-r--r-- | test/Transforms/Reassociate/2002-07-09-DominanceProblem.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/Reassociate/2002-07-09-DominanceProblem.ll b/test/Transforms/Reassociate/2002-07-09-DominanceProblem.ll new file mode 100644 index 0000000000000..c19baeaae68f8 --- /dev/null +++ b/test/Transforms/Reassociate/2002-07-09-DominanceProblem.ll @@ -0,0 +1,10 @@ +; The reassociate pass is not preserving dominance properties correctly +; +; RUN: llvm-as < %s | opt -reassociate + +define i32 @compute_dist(i32 %i, i32 %j) { + %reg119 = sub i32 %j, %i ; <i32> [#uses=1] + ret i32 %reg119 +} + + |
