[llvm] r220873 - Test Case for r220872:Do not simplifyLatch for loops where hoisting increments couldresult in extra live range interferance
Adrian Prantl
aprantl at apple.com
Wed Oct 29 17:07:03 PDT 2014
Thanks!
-- adrian
> On Oct 29, 2014, at 4:19 PM, NAKAMURA Takumi <geek4civic at gmail.com> wrote:
>
> Fixed in r220880.
>
> 2014-10-30 7:15 GMT+09:00 Adrian Prantl <aprantl at apple.com>:
>> This testcase is failing on our build bots:
>> http://lab.llvm.org:8080/green/view/Clang%20Stage%201/job/clang-stage1-configure-RA_check/597/consoleFull#-15017152668254eaf0-7326-4999-85b0-388101f2d404
>>
>> Could you please fix/revert this change?
>>
>> thanks,
>> adrian
>>
>>> On Oct 29, 2014, at 1:20 PM, Yi Jiang <yjiang at apple.com> wrote:
>>>
>>> Author: yjiang
>>> Date: Wed Oct 29 15:20:33 2014
>>> New Revision: 220873
>>>
>>> URL: http://llvm.org/viewvc/llvm-project?rev=220873&view=rev
>>> Log:
>>> Test Case for r220872:Do not simplifyLatch for loops where hoisting increments couldresult in extra live range interferance
>>>
>>> Added:
>>> llvm/trunk/test/Transforms/LoopRotate/nosimplifylatch.ll
>>>
>>> Added: llvm/trunk/test/Transforms/LoopRotate/nosimplifylatch.ll
>>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LoopRotate/nosimplifylatch.ll?rev=220873&view=auto
>>> ==============================================================================
>>> --- llvm/trunk/test/Transforms/LoopRotate/nosimplifylatch.ll (added)
>>> +++ llvm/trunk/test/Transforms/LoopRotate/nosimplifylatch.ll Wed Oct 29 15:20:33 2014
>>> @@ -0,0 +1,70 @@
>>> +; RUN: opt -S < %s -loop-rotate -licm -verify-dom-info -verify-loop-info | FileCheck %s
>>> +target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
>>> +target triple = "arm64-apple-ios8.0.0"
>>> +
>>> +;CHECK: for.inc:
>>> +;CHECK-NEXT: %incdec.ptr.i = getelementptr
>>> +
>>> +; Function Attrs: alwaysinline inlinehint nounwind readonly ssp
>>> +define linkonce_odr hidden i64 @_ZNSt3__14findINS_11__wrap_iterIPiEEiEET_S4_S4_RKT0_(i64 %__first.coerce, i64 %__last.coerce, i32* nocapture readonly dereferenceable(4) %__value_) {
>>> +entry:
>>> + %coerce.val.ip = inttoptr i64 %__first.coerce to i32*
>>> + %coerce.val.ip2 = inttoptr i64 %__last.coerce to i32*
>>> + br label %for.cond
>>> +
>>> +for.cond: ; preds = %for.inc, %entry
>>> + %coerce.val.ip9 = phi i32* [ %incdec.ptr.i, %for.inc ], [ %coerce.val.ip, %entry ]
>>> + %lnot.i = icmp eq i32* %coerce.val.ip9, %coerce.val.ip2
>>> + br i1 %lnot.i, label %for.end, label %for.body
>>> +
>>> +for.body: ; preds = %for.cond
>>> + %0 = load i32* %coerce.val.ip9, align 4
>>> + %1 = load i32* %__value_, align 4
>>> + %cmp = icmp eq i32 %0, %1
>>> + br i1 %cmp, label %for.end, label %for.inc
>>> +
>>> +for.inc: ; preds = %for.body
>>> + %incdec.ptr.i = getelementptr inbounds i32* %coerce.val.ip9, i64 1
>>> + br label %for.cond
>>> +
>>> +for.end: ; preds = %for.cond, %for.body
>>> + %coerce.val.ip9.lcssa = phi i32* [ %coerce.val.ip9, %for.cond ], [ %coerce.val.ip9, %for.body ]
>>> + %coerce.val.pi = ptrtoint i32* %coerce.val.ip9.lcssa to i64
>>> + ret i64 %coerce.val.pi
>>> +}
>>> +
>>> +; RUN: opt -S < %s -loop-rotate -licm -verify-dom-info -verify-loop-info | FileCheck %s
>>> +target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
>>> +target triple = "arm64-apple-ios8.0.0"
>>> +
>>> +;CHECK: for.inc:
>>> +;CHECK-NEXT: %incdec.ptr.i = getelementptr
>>> +
>>> +; Function Attrs: alwaysinline inlinehint nounwind readonly ssp
>>> +define linkonce_odr hidden i64 @_ZNSt3__14findINS_11__wrap_iterIPiEEiEET_S4_S4_RKT0_(i64 %__first.coerce, i64 %__last.coerce, i32* nocapture readonly dereferenceable(4) %__value_) {
>>> +entry:
>>> + %coerce.val.ip = inttoptr i64 %__first.coerce to i32*
>>> + %coerce.val.ip2 = inttoptr i64 %__last.coerce to i32*
>>> + br label %for.cond
>>> +
>>> +for.cond: ; preds = %for.inc, %entry
>>> + %coerce.val.ip9 = phi i32* [ %incdec.ptr.i, %for.inc ], [ %coerce.val.ip, %entry ]
>>> + %lnot.i = icmp eq i32* %coerce.val.ip9, %coerce.val.ip2
>>> + br i1 %lnot.i, label %for.end, label %for.body
>>> +
>>> +for.body: ; preds = %for.cond
>>> + %0 = load i32* %coerce.val.ip9, align 4
>>> + %1 = load i32* %__value_, align 4
>>> + %cmp = icmp eq i32 %0, %1
>>> + br i1 %cmp, label %for.end, label %for.inc
>>> +
>>> +for.inc: ; preds = %for.body
>>> + %incdec.ptr.i = getelementptr inbounds i32* %coerce.val.ip9, i64 1
>>> + br label %for.cond
>>> +
>>> +for.end: ; preds = %for.cond, %for.body
>>> + %coerce.val.ip9.lcssa = phi i32* [ %coerce.val.ip9, %for.cond ], [ %coerce.val.ip9, %for.body ]
>>> + %coerce.val.pi = ptrtoint i32* %coerce.val.ip9.lcssa to i64
>>> + ret i64 %coerce.val.pi
>>> +}
>>> +
>>>
>>>
>>> _______________________________________________
>>> llvm-commits mailing list
>>> llvm-commits at cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list