[llvm-commits] [llvm] r82424 - in /llvm/trunk: test/Transforms/GVN/rle.ll utils/FileCheck/FileCheck.cpp
Chris Lattner
sabre at nondot.org
Sun Sep 20 19:30:42 PDT 2009
Author: lattner
Date: Sun Sep 20 21:30:42 2009
New Revision: 82424
URL: http://llvm.org/viewvc/llvm-project?rev=82424&view=rev
Log:
fix a FileCheck bug where:
; CHECK: foo
; CHECK-NOT: foo
; CHECK: bar
would always fail.
Modified:
llvm/trunk/test/Transforms/GVN/rle.ll
llvm/trunk/utils/FileCheck/FileCheck.cpp
Modified: llvm/trunk/test/Transforms/GVN/rle.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GVN/rle.ll?rev=82424&r1=82423&r2=82424&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/GVN/rle.ll (original)
+++ llvm/trunk/test/Transforms/GVN/rle.ll Sun Sep 20 21:30:42 2009
@@ -73,7 +73,6 @@
; CHECK: @coerce_mustalias4
; CHECK: %A = load i32* %P
-; CHECK: bitcast
; CHECK-NOT: load
; CHECK: ret float
; CHECK: F:
Modified: llvm/trunk/utils/FileCheck/FileCheck.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/FileCheck/FileCheck.cpp?rev=82424&r1=82423&r2=82424&view=diff
==============================================================================
--- llvm/trunk/utils/FileCheck/FileCheck.cpp (original)
+++ llvm/trunk/utils/FileCheck/FileCheck.cpp Sun Sep 20 21:30:42 2009
@@ -361,10 +361,10 @@
}
- // Otherwise, everything is good. Remember this as the last match and move
- // on to the next one.
- LastMatch = Buffer.data();
+ // Otherwise, everything is good. Step over the matched text and remember
+ // the position after the match as the end of the last match.
Buffer = Buffer.substr(CheckStr.Str.size());
+ LastMatch = Buffer.data();
}
return 0;
More information about the llvm-commits
mailing list