llvm-project/llvm/test/Transforms/Reassociate/2002-07-09-DominanceProblem.ll
Bjorn Pettersson 0676acb6fd [test] Switch to use -passes syntax in a bunch of test cases
Should cover most of the tests for GVN, GVNHoist, GVNSink, GlobalOpt,
GlobalSplit, InstCombine, Reassociate, SROA and TailCallElim that
had not been updated earlier.
2022-11-29 13:29:02 +01:00

11 lines
220 B
LLVM

; The reassociate pass is not preserving dominance properties correctly
;
; RUN: opt < %s -passes=reassociate
define i32 @compute_dist(i32 %i, i32 %j) {
%reg119 = sub i32 %j, %i ; <i32> [#uses=1]
ret i32 %reg119
}