[llvm] f2b4b2e - Reverting changes to correct the commit message

Biplob Mishra via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 5 05:39:30 PDT 2022


Author: Biplob Mishra
Date: 2022-04-05T13:38:14+01:00
New Revision: f2b4b2ebe7a3c1d85a138fc729faf5c3ccb2e941

URL: https://github.com/llvm/llvm-project/commit/f2b4b2ebe7a3c1d85a138fc729faf5c3ccb2e941
DIFF: https://github.com/llvm/llvm-project/commit/f2b4b2ebe7a3c1d85a138fc729faf5c3ccb2e941.diff

LOG: Reverting changes to correct the commit message

Added: 
    

Modified: 
    llvm/lib/Target/AArch64/AArch64InstrInfo.td
    llvm/test/CodeGen/AArch64/arm64-rev.ll

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.td b/llvm/lib/Target/AArch64/AArch64InstrInfo.td
index da27245006385..64f227b83274b 100644
--- a/llvm/lib/Target/AArch64/AArch64InstrInfo.td
+++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.td
@@ -2086,10 +2086,6 @@ def : Pat<(bswap (rotr GPR64:$Rn, (i64 32))), (REV32Xr GPR64:$Rn)>;
 def : Pat<(srl (bswap top16Zero:$Rn), (i64 16)), (REV16Wr GPR32:$Rn)>;
 def : Pat<(srl (bswap top32Zero:$Rn), (i64 32)), (REV32Xr GPR64:$Rn)>;
 
-def : Pat<(or (and (srl GPR64:$Rn, (i64 8)), (i64 0x00ff00ff00ff00ff)),
-              (and (shl GPR64:$Rn, (i64 8)), (i64 0xff00ff00ff00ff00))),
-          (REV16Xr GPR64:$Rn)>;
-
 //===----------------------------------------------------------------------===//
 // Bitfield immediate extraction instruction.
 //===----------------------------------------------------------------------===//

diff  --git a/llvm/test/CodeGen/AArch64/arm64-rev.ll b/llvm/test/CodeGen/AArch64/arm64-rev.ll
index 3f853063f9a92..fe05c3020a4b6 100644
--- a/llvm/test/CodeGen/AArch64/arm64-rev.ll
+++ b/llvm/test/CodeGen/AArch64/arm64-rev.ll
@@ -679,26 +679,3 @@ define void @test_bswap32_narrow(i32* %p0, i16* %p1) nounwind {
   ret void
 }
 declare i32 @gid_tbl_len(...)
-
-; 64-bit REV16 is *not* a swap then a 16-bit rotation:
-;   01234567 ->(bswap) 76543210 ->(rotr) 10765432
-;   01234567 ->(rev16) 10325476
-; Optimize patterns where rev16 can be generated for a 64-bit input.
-define i64 @test_rev16_x_hwbyteswaps(i64 %a) nounwind {
-; CHECK-LABEL: test_rev16_x_hwbyteswaps:
-; CHECK:       // %bb.0: // %entry
-; CHECK-NEXT:    rev16 x0, x0
-; CHECK-NEXT:    ret
-;
-; GISEL-LABEL: test_rev16_x_hwbyteswaps:
-; GISEL:       // %bb.0: // %entry
-; GISEL-NEXT:    rev16 x0, x0
-; GISEL-NEXT:    ret
-entry:
-  %0 = lshr i64 %a, 8
-  %1 = and i64 %0, 71777214294589695
-  %2 = shl i64 %a, 8
-  %3 = and i64 %2, -71777214294589696
-  %4 = or i64 %1, %3
-  ret i64 %4
-}


        


More information about the llvm-commits mailing list