[SROA] Rip out all support for SSAUpdater in SROA.
[oota-llvm.git] / test / Transforms / InstCombine / udiv-simplify-bug-1.ll
index d95e8f8359085c0bb45a03a87ea17e4261620751..74f2fdd7cc63e2ca365438a19e5984a34f347528 100644 (file)
@@ -6,9 +6,9 @@
 ; The udiv instructions shouldn't be optimized away, and the
 ; sext instructions should be optimized to zext.
 
-define i64 @bar(i32 %x) nounwind {
+define i64 @bar(i32 %x, i32 %g) nounwind {
   %y = lshr i32 %x, 30
-  %r = udiv i32 %y, 3
+  %r = udiv i32 %y, %g
   %z = sext i32 %r to i64
   ret i64 %z
 }