phi3.ll 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. ; RUN: opt < %s -basicaa -slp-vectorizer -dce -S -mtriple=x86_64-apple-macosx10.8.0 -mcpu=corei7
  2. target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
  3. target triple = "x86_64-apple-macosx10.8.0"
  4. %struct.GPar.0.16.26 = type { [0 x double], double }
  5. @d = external global double, align 8
  6. declare %struct.GPar.0.16.26* @Rf_gpptr(...)
  7. define void @Rf_GReset() {
  8. entry:
  9. %sub = fsub double -0.000000e+00, undef
  10. %0 = load double, double* @d, align 8
  11. %sub1 = fsub double -0.000000e+00, %0
  12. br i1 icmp eq (%struct.GPar.0.16.26* (...)* inttoptr (i64 115 to %struct.GPar.0.16.26* (...)*), %struct.GPar.0.16.26* (...)* @Rf_gpptr), label %if.then, label %if.end7
  13. if.then: ; preds = %entry
  14. %sub2 = fsub double %sub, undef
  15. %div.i = fdiv double %sub2, undef
  16. %sub4 = fsub double %sub1, undef
  17. %div.i16 = fdiv double %sub4, undef
  18. %cmp = fcmp ogt double %div.i, %div.i16
  19. br i1 %cmp, label %if.then6, label %if.end7
  20. if.then6: ; preds = %if.then
  21. br label %if.end7
  22. if.end7: ; preds = %if.then6, %if.then, %entry
  23. %g.0 = phi double [ 0.000000e+00, %if.then6 ], [ %sub, %if.then ], [ %sub, %entry ]
  24. ret void
  25. }