From 51787b20229df72ebfc3ecb7dcf6186b96dd07f4 Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Tue, 31 Oct 2017 14:06:31 +0000 Subject: [PATCH] [Reassociate] Remove FIXME from looptest.ll (NFC) 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llvm/test/Transforms/Reassociate/looptest.ll b/llvm/test/Transforms/Reassociate/looptest.ll index 5563070..2c3db31 100644 --- a/llvm/test/Transforms/Reassociate/looptest.ll +++ b/llvm/test/Transforms/Reassociate/looptest.ll @@ -12,13 +12,14 @@ ; 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 ; [#uses=3] -- 2.7.4