[llvm] r272566 - [X86] Remove llvm.x86.bit.scan.{forward,reverse}.32
David Majnemer via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 13 10:33:13 PDT 2016
Author: majnemer
Date: Mon Jun 13 12:33:13 2016
New Revision: 272566
URL: http://llvm.org/viewvc/llvm-project?rev=272566&view=rev
Log:
[X86] Remove llvm.x86.bit.scan.{forward,reverse}.32
The need for these intrinsics has been obviated by r272564 which
reimplements their functionality using generic IR.
Removed:
llvm/trunk/test/CodeGen/X86/bitscan.ll
Modified:
llvm/trunk/include/llvm/IR/IntrinsicsX86.td
llvm/trunk/lib/Target/X86/X86IntrinsicsInfo.h
Modified: llvm/trunk/include/llvm/IR/IntrinsicsX86.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/IntrinsicsX86.td?rev=272566&r1=272565&r2=272566&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/IntrinsicsX86.td (original)
+++ llvm/trunk/include/llvm/IR/IntrinsicsX86.td Mon Jun 13 12:33:13 2016
@@ -8098,13 +8098,3 @@ let TargetPrefix = "x86" in {
: GCCBuiltin<"__builtin_ia32_mwaitx">,
Intrinsic<[], [ llvm_i32_ty, llvm_i32_ty, llvm_i32_ty ], []>;
}
-
-//===----------------------------------------------------------------------===//
-// Bit Scan intrinsics
-let TargetPrefix = "x86" in {
- def int_x86_bit_scan_forward_32 : GCCBuiltin<"__builtin_ia32_bit_scan_forward">,
- Intrinsic<[llvm_i32_ty], [llvm_i32_ty], [IntrNoMem]>;
-
- def int_x86_bit_scan_reverse_32 : GCCBuiltin<"__builtin_ia32_bit_scan_reverse">,
- Intrinsic<[llvm_i32_ty], [llvm_i32_ty], [IntrNoMem]>;
-}
Modified: llvm/trunk/lib/Target/X86/X86IntrinsicsInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86IntrinsicsInfo.h?rev=272566&r1=272565&r2=272566&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86IntrinsicsInfo.h (original)
+++ llvm/trunk/lib/Target/X86/X86IntrinsicsInfo.h Mon Jun 13 12:33:13 2016
@@ -2044,8 +2044,6 @@ static const IntrinsicData IntrinsicsWi
X86ISD::SCALAR_FP_TO_UINT_RND, 0),
X86_INTRINSIC_DATA(avx512_vcvtss2usi64, INTR_TYPE_2OP,
X86ISD::SCALAR_FP_TO_UINT_RND, 0),
- X86_INTRINSIC_DATA(bit_scan_forward_32, INTR_TYPE_1OP, X86ISD::BSF, 0),
- X86_INTRINSIC_DATA(bit_scan_reverse_32, INTR_TYPE_1OP, X86ISD::BSR, 0),
X86_INTRINSIC_DATA(fma_vfmadd_pd, INTR_TYPE_3OP, X86ISD::FMADD, 0),
X86_INTRINSIC_DATA(fma_vfmadd_pd_256, INTR_TYPE_3OP, X86ISD::FMADD, 0),
X86_INTRINSIC_DATA(fma_vfmadd_ps, INTR_TYPE_3OP, X86ISD::FMADD, 0),
Removed: llvm/trunk/test/CodeGen/X86/bitscan.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/bitscan.ll?rev=272565&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/bitscan.ll (original)
+++ llvm/trunk/test/CodeGen/X86/bitscan.ll (removed)
@@ -1,23 +0,0 @@
-; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mcpu=corei7 | FileCheck %s --check-prefix=ALL --check-prefix=64-BIT
-; RUN: llc < %s -mtriple=i386-unknown-unknown -mcpu=corei7 | FileCheck %s --check-prefix=ALL --check-prefix=32-BIT
-declare i32 @llvm.x86.bit.scan.forward.32(i32 %val)
-declare i32 @llvm.x86.bit.scan.reverse.32(i32 %val)
-
-define i32 @test_bsf(i32 %val) {
- %call = call i32 @llvm.x86.bit.scan.forward.32(i32 %val)
- ret i32 %call
-
-; ALL-LABEL: test_bsf:
-; 64-BIT: bsfl %edi, %eax
-; 32-BIT: bsfl 4(%esp), %eax
-}
-
-define i32 @test_bsr(i32 %val) {
- %call = call i32 @llvm.x86.bit.scan.reverse.32(i32 %val)
- ret i32 %call
-
-; ALL-LABEL: test_bsr:
-; 64-BIT: bsrl %edi, %eax
-; 32-BIT: bsrl 4(%esp), %eax
-}
-
More information about the llvm-commits
mailing list