1; RUN: opt -instsimplify -S < %s | FileCheck %s 2 3; Test back to back reverse shuffles are eliminated. 4define <vscale x 4 x i32> @shuffle_b2b_reverse(<vscale x 4 x i32> %a) { 5; CHECK-LABEL: @shuffle_b2b_reverse( 6; CHECK: ret <vscale x 4 x i32> %a 7 %rev = tail call <vscale x 4 x i32> @llvm.experimental.vector.reverse.nxv4i32(<vscale x 4 x i32> %a) 8 %rev.rev = tail call <vscale x 4 x i32> @llvm.experimental.vector.reverse.nxv4i32(<vscale x 4 x i32> %rev) 9 ret <vscale x 4 x i32> %rev.rev 10} 11 12declare <vscale x 4 x i32> @llvm.experimental.vector.reverse.nxv4i32(<vscale x 4 x i32>) 13