Skip to content

Commit a2adc64

Browse files
committed
Remove unnecessary intrinsic declarations
1 parent 7fecf8e commit a2adc64

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

llvm/test/CodeGen/RISCV/ctlz-cttz-select-fold.ll

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ define i7 @test_cttz_select_i7(i7 %0) {
113113
%4 = select i1 %3, i7 0, i7 %2
114114
ret i7 %4
115115
}
116-
declare i7 @llvm.cttz.i7(i7, i1 immarg)
117116

118117
define i10 @test_ctlz_select_i10(i10 %0) {
119118
; RV32-LABEL: test_ctlz_select_i10:
@@ -238,7 +237,6 @@ define i10 @test_ctlz_select_i10(i10 %0) {
238237
%4 = select i1 %3, i10 0, i10 %2
239238
ret i10 %4
240239
}
241-
declare i10 @llvm.ctlz.i10(i10, i1 immarg)
242240

243241
define i16 @test_ctlz_select_i16(i16 %0) {
244242
; RV32-LABEL: test_ctlz_select_i16:
@@ -329,7 +327,6 @@ define i16 @test_ctlz_select_i16(i16 %0) {
329327
%4 = select i1 %3, i16 0, i16 %2
330328
ret i16 %4
331329
}
332-
declare i16 @llvm.cttz.i16(i16, i1 immarg)
333330

334331
define i32 @test_ctlz_select_i32(i32 %0) {
335332
; RV32-LABEL: test_ctlz_select_i32:
@@ -439,4 +436,4 @@ define i32 @test_ctlz_select_i32(i32 %0) {
439436
%4 = select i1 %3, i32 0, i32 %2
440437
ret i32 %4
441438
}
442-
declare i32 @llvm.ctlz.i32(i32, i1 immarg)
439+

0 commit comments

Comments
 (0)