[Reassociate] Remove FIXME from looptest.ll (NFC)
authorFlorian Hahn <florian.hahn@arm.com>
Tue, 31 Oct 2017 14:06:31 +0000 (14:06 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Tue, 31 Oct 2017 14:06:31 +0000 (14:06 +0000)
Summary: The loop invariant add (i+j) is reassoicated, I think the FIXME can be removed, because this is what the test case tries to check (AFAIK). I also changed the test to use FileCheck.

Reviewers: mcrosier, davide

Reviewed By: mcrosier, davide

Subscribers: davide, llvm-commits

Differential Revision: https://reviews.llvm.org/D39424

llvm-svn: 317000

llvm/test/Transforms/Reassociate/looptest.ll

index 5563070..2c3db31 100644 (file)
 ; In this case, we want to reassociate the specified expr so that i+j can be
 ; hoisted out of the inner most loop.
 ;
-; RUN: opt < %s -reassociate -S | grep 115 | not grep 117
+; RUN: opt < %s -reassociate -S | FileCheck %s
 ; END.
 @.LC0 = internal global [4 x i8] c"%d\0A\00"           ; <[4 x i8]*> [#uses=1]
 
 declare i32 @printf(i8*, ...)
 
-; FIXME: No longer works.
+; Check that (i+j) has been reassociated (i=reg115, j=reg116)
+; CHECK: %reg113 = add i32 %reg116, %reg115
 define void @test(i32 %Num, i32* %Array) {
 bb0:
        %cond221 = icmp eq i32 0, %Num          ; <i1> [#uses=3]