[llvm] r374514 - [NFC] run specific pass instead of whole -O3 pipeline for popcount recoginzation testcase.

Chen Zheng via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 10 22:30:19 PDT 2019


Author: shchenz
Date: Thu Oct 10 22:30:18 2019
New Revision: 374514

URL: http://llvm.org/viewvc/llvm-project?rev=374514&view=rev
Log:
[NFC] run specific pass instead of whole -O3 pipeline for popcount recoginzation testcase.

Modified:
    llvm/trunk/test/Transforms/AggressiveInstCombine/popcount.ll

Modified: llvm/trunk/test/Transforms/AggressiveInstCombine/popcount.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/AggressiveInstCombine/popcount.ll?rev=374514&r1=374513&r2=374514&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/AggressiveInstCombine/popcount.ll (original)
+++ llvm/trunk/test/Transforms/AggressiveInstCombine/popcount.ll Thu Oct 10 22:30:18 2019
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -O3 < %s -instcombine -S | FileCheck %s
+; RUN: opt < %s -aggressive-instcombine -S | FileCheck %s
 
 ;int popcount8(unsigned char i) {
 ;  i = i - ((i >> 1) & 0x55);
@@ -44,7 +44,7 @@ define signext i32 @popcount8(i8 zeroext
 ;}
 define signext i32 @popcount32(i32 zeroext %0) {
 ; CHECK-LABEL: @popcount32(
-; CHECK-NEXT:    [[TMP2:%.*]] = tail call i32 @llvm.ctpop.i32(i32 [[TMP0:%.*]]), !range !0
+; CHECK-NEXT:    [[TMP2:%.*]] = call i32 @llvm.ctpop.i32(i32 [[TMP0:%.*]])
 ; CHECK-NEXT:    ret i32 [[TMP2]]
 ;
   %2 = lshr i32 %0, 1
@@ -70,7 +70,7 @@ define signext i32 @popcount32(i32 zeroe
 ;}
 define signext i32 @popcount64(i64 %0) {
 ; CHECK-LABEL: @popcount64(
-; CHECK-NEXT:    [[TMP2:%.*]] = tail call i64 @llvm.ctpop.i64(i64 [[TMP0:%.*]]), !range !1
+; CHECK-NEXT:    [[TMP2:%.*]] = call i64 @llvm.ctpop.i64(i64 [[TMP0:%.*]])
 ; CHECK-NEXT:    [[TMP3:%.*]] = trunc i64 [[TMP2]] to i32
 ; CHECK-NEXT:    ret i32 [[TMP3]]
 ;
@@ -111,7 +111,7 @@ define signext i32 @popcount64(i64 %0) {
 ;}
 define signext i32 @popcount128(i128 %0) {
 ; CHECK-LABEL: @popcount128(
-; CHECK-NEXT:    [[TMP2:%.*]] = tail call i128 @llvm.ctpop.i128(i128 [[TMP0:%.*]]), !range !2
+; CHECK-NEXT:    [[TMP2:%.*]] = call i128 @llvm.ctpop.i128(i128 [[TMP0:%.*]])
 ; CHECK-NEXT:    [[TMP3:%.*]] = trunc i128 [[TMP2]] to i32 
 ; CHECK-NEXT:    ret i32 [[TMP3]]
 ;
@@ -174,7 +174,7 @@ define <16 x i8> @popcount8vec(<16 x i8>
 ;}
 define <4 x i32> @popcount32vec(<4 x i32> %0) {
 ; CHECK-LABEL: @popcount32vec(
-; CHECK-NEXT:    [[TMP2:%.*]] = tail call <4 x i32> @llvm.ctpop.v4i32(<4 x i32> [[TMP0:%.*]])
+; CHECK-NEXT:    [[TMP2:%.*]] = call <4 x i32> @llvm.ctpop.v4i32(<4 x i32> [[TMP0:%.*]])
 ; CHECK-NEXT:    ret <4 x i32> [[TMP2]]
 ;
   %2 = lshr <4 x i32> %0, <i32 1, i32 1, i32 1, i32 1>




More information about the llvm-commits mailing list