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 00000000000..7c26dc17531 --- /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: as < %s | opt -reassociate -verify + +int %compute_dist(int %i, int %j) { + %reg119 = sub int %j, %i + ret int %reg119 +} + +