1; RUN: opt -S < %s -loop-rotate -licm -verify-dom-info -verify-loop-info | FileCheck %s 2target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128" 3target triple = "arm64-apple-ios8.0.0" 4 5;CHECK: for.inc: 6;CHECK-NEXT: %incdec.ptr.i = getelementptr 7 8; Function Attrs: alwaysinline inlinehint nounwind readonly ssp 9define linkonce_odr hidden i64 @_ZNSt3__14findINS_11__wrap_iterIPiEEiEET_S4_S4_RKT0_(i64 %__first.coerce, i64 %__last.coerce, i32* nocapture readonly dereferenceable(4) %__value_) { 10entry: 11 %coerce.val.ip = inttoptr i64 %__first.coerce to i32* 12 %coerce.val.ip2 = inttoptr i64 %__last.coerce to i32* 13 br label %for.cond 14 15for.cond: ; preds = %for.inc, %entry 16 %coerce.val.ip9 = phi i32* [ %incdec.ptr.i, %for.inc ], [ %coerce.val.ip, %entry ] 17 %lnot.i = icmp eq i32* %coerce.val.ip9, %coerce.val.ip2 18 br i1 %lnot.i, label %for.end, label %for.body 19 20for.body: ; preds = %for.cond 21 %0 = load i32, i32* %coerce.val.ip9, align 4 22 %1 = load i32, i32* %__value_, align 4 23 %cmp = icmp eq i32 %0, %1 24 br i1 %cmp, label %for.end, label %for.inc 25 26for.inc: ; preds = %for.body 27 %incdec.ptr.i = getelementptr inbounds i32, i32* %coerce.val.ip9, i64 1 28 br label %for.cond 29 30for.end: ; preds = %for.cond, %for.body 31 %coerce.val.ip9.lcssa = phi i32* [ %coerce.val.ip9, %for.cond ], [ %coerce.val.ip9, %for.body ] 32 %coerce.val.pi = ptrtoint i32* %coerce.val.ip9.lcssa to i64 33 ret i64 %coerce.val.pi 34} 35