[llvm-commits] [Patch] Optimize integer ABS on X86

Chandler Carruth chandlerc at google.com
Wed Jun 6 18:30:16 PDT 2012


Minor comment on the patch itself:

--- test/CodeGen/X86/iabs.ll (revision 157837)
+++ test/CodeGen/X86/iabs.ll (working copy)
@@ -1,13 +1,18 @@
 ; RUN: llc < %s -march=x86-64 -stats  |& \
-; RUN:   grep {5 .*Number of machine instrs printed}
+; RUN:   grep {4 .*Number of machine instrs printed}
+; RUN: llc < %s -march=x86-64 | FileCheck %s

Don't mix and match 'grep' and FileCheck based tests.

Actually, I would ask that any time you're about to touch a test case that
currently uses grep, first convert it to use FileCheck, submit that, and
then build your patch on top of it. We would like the test suite to slowly
move away from all 'grep' based assertions.

+; rdar://10695237

I'd also attach rdar and bug links to the actual test code & filecheck
assertions relevant for that particular issue...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120606/2c4530d2/attachment.html>


More information about the llvm-commits mailing list