secondary.ll 649 B

123456789101112131415161718192021222324
  1. ; RUN: opt -S -reassociate < %s | FileCheck %s
  2. ; rdar://9167457
  3. ; Reassociate shouldn't break this testcase involving a secondary
  4. ; reassociation.
  5. ; CHECK: define
  6. ; CHECK-NOT: undef
  7. ; CHECK: %factor = mul i32 %tmp3, -2
  8. ; CHECK-NOT: undef
  9. ; CHECK: }
  10. define void @x0f2f640ab6718391b59ce96d9fdeda54(i32 %arg, i32 %arg1, i32 %arg2, i32* %.out) nounwind {
  11. _:
  12. %tmp = sub i32 %arg, %arg1
  13. %tmp3 = mul i32 %tmp, -1268345047
  14. %tmp4 = add i32 %tmp3, 2014710503
  15. %tmp5 = add i32 %tmp3, -1048397418
  16. %tmp6 = sub i32 %tmp4, %tmp5
  17. %tmp7 = sub i32 -2014710503, %tmp3
  18. %tmp8 = add i32 %tmp6, %tmp7
  19. store i32 %tmp8, i32* %.out
  20. ret void
  21. }