From 81a0323df533d60d71d4b1270afa6ca607340104 Mon Sep 17 00:00:00 2001 From: Jim Lin Date: Thu, 6 Mar 2025 09:54:34 +0800 Subject: [PATCH] [RISCV] Remove the TODO for folding bswap and shift from the test https://reviews.llvm.org/D122655 has supported it. --- llvm/test/CodeGen/RISCV/bswap-shift.ll | 4 ---- 1 file changed, 4 deletions(-) diff --git a/llvm/test/CodeGen/RISCV/bswap-shift.ll b/llvm/test/CodeGen/RISCV/bswap-shift.ll index 161a816973c17..23f32ae327fd9 100644 --- a/llvm/test/CodeGen/RISCV/bswap-shift.ll +++ b/llvm/test/CodeGen/RISCV/bswap-shift.ll @@ -8,10 +8,6 @@ ; RUN: llc -mtriple=riscv64 -mattr=+zbkb -verify-machineinstrs < %s \ ; RUN: | FileCheck %s -check-prefixes=RV64ZB -; TODO: These tests can be optmised, with x%8 == 0 -; fold (bswap(srl (bswap c), x)) -> (shl c, x) -; fold (bswap(shl (bswap c), x)) -> (srl c, x) - declare i16 @llvm.bswap.i16(i16) declare i32 @llvm.bswap.i32(i32) declare i64 @llvm.bswap.i64(i64)