From 4c988f79fb3e873923b0fffccc0910e239fc833b Mon Sep 17 00:00:00 2001 From: dtcxzyw <15650457+dtcxzyw@users.noreply.github.com> Date: Fri, 28 Mar 2025 00:39:17 +0800 Subject: [PATCH 1/2] pre-commit: PR133139 --- scripts/setup_pre_commit_patch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setup_pre_commit_patch.sh b/scripts/setup_pre_commit_patch.sh index c5409e09ef4..dbd5bd15821 100755 --- a/scripts/setup_pre_commit_patch.sh +++ b/scripts/setup_pre_commit_patch.sh @@ -2,7 +2,7 @@ set -euo pipefail shopt -s inherit_errexit -export GITHUB_PATCH_ID="/llvm-project/commit/" +export GITHUB_PATCH_ID=llvm/llvm-project/pull/133139 export COMPTIME_MODE=0 # Please rebase manually From addb8449a19950363145f7f24954e84b4da8fed5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 27 Mar 2025 16:58:02 +0000 Subject: [PATCH 2/2] pre-commit: Update --- bench/php/optimized/hash_whirlpool.ll | 2 +- bench/spike/optimized/sm4ed.ll | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/bench/php/optimized/hash_whirlpool.ll b/bench/php/optimized/hash_whirlpool.ll index fd870afe015..3143fb95001 100644 --- a/bench/php/optimized/hash_whirlpool.ll +++ b/bench/php/optimized/hash_whirlpool.ll @@ -222,7 +222,7 @@ define internal fastcc void @WhirlpoolTransform(ptr noundef captures(none) %0) u %35 = load i8, ptr %34, align 1, !tbaa !11 %36 = zext i8 %35 to i64 %37 = shl nuw nsw i64 %36, 8 - %38 = xor i64 %33, %37 + %38 = or disjoint i64 %33, %37 %39 = getelementptr inbounds nuw i8, ptr %.0107, i64 7 %40 = load i8, ptr %39, align 1, !tbaa !11 %41 = zext i8 %40 to i64 diff --git a/bench/spike/optimized/sm4ed.ll b/bench/spike/optimized/sm4ed.ll index d89f8f283dd..7b6d4a55119 100644 --- a/bench/spike/optimized/sm4ed.ll +++ b/bench/spike/optimized/sm4ed.ll @@ -120,7 +120,7 @@ define noundef range(i64 -2147483648, 2147483648) i64 @_Z16fast_rv32i_sm4edP11pr %36 = or disjoint i32 %34, %35 %37 = shl nuw nsw i32 %28, 10 %38 = and i32 %37, 196608 - %39 = xor i32 %36, %38 + %39 = or disjoint i32 %36, %38 %40 = tail call i32 @llvm.fshl.i32(i32 %39, i32 %39, i32 %22) %41 = lshr i64 %1, 15 %42 = and i64 %41, 31 @@ -212,7 +212,7 @@ define noundef i64 @_Z16fast_rv64i_sm4edP11processor_t6insn_tm(ptr noundef captu %36 = or disjoint i32 %34, %35 %37 = shl nuw nsw i32 %28, 10 %38 = and i32 %37, 196608 - %39 = xor i32 %36, %38 + %39 = or disjoint i32 %36, %38 %40 = tail call i32 @llvm.fshl.i32(i32 %39, i32 %39, i32 %22) %41 = lshr i64 %1, 15 %42 = and i64 %41, 31 @@ -276,7 +276,7 @@ define noundef range(i64 -2147483648, 2147483648) i64 @_Z18logged_rv32i_sm4edP11 %34 = or disjoint i32 %32, %33 %35 = shl nuw nsw i32 %26, 10 %36 = and i32 %35, 196608 - %37 = xor i32 %34, %36 + %37 = or disjoint i32 %34, %36 %38 = tail call i32 @llvm.fshl.i32(i32 %37, i32 %37, i32 %20) %39 = lshr i64 %1, 15 %40 = and i64 %39, 31 @@ -443,7 +443,7 @@ define noundef i64 @_Z18logged_rv64i_sm4edP11processor_t6insn_tm(ptr noundef %0, %34 = or disjoint i32 %32, %33 %35 = shl nuw nsw i32 %26, 10 %36 = and i32 %35, 196608 - %37 = xor i32 %34, %36 + %37 = or disjoint i32 %34, %36 %38 = tail call i32 @llvm.fshl.i32(i32 %37, i32 %37, i32 %20) %39 = lshr i64 %1, 15 %40 = and i64 %39, 31 @@ -577,7 +577,7 @@ define noundef range(i64 -2147483648, 2147483648) i64 @_Z16fast_rv32e_sm4edP11pr %59 = or disjoint i32 %57, %58 %60 = shl nuw nsw i32 %51, 10 %61 = and i32 %60, 196608 - %62 = xor i32 %59, %61 + %62 = or disjoint i32 %59, %61 %63 = tail call i32 @llvm.fshl.i32(i32 %62, i32 %62, i32 %26) %64 = getelementptr inbounds nuw [32 x i64], ptr %22, i64 0, i64 %33 %65 = load i64, ptr %64, align 8, !tbaa !3 @@ -696,7 +696,7 @@ define noundef i64 @_Z16fast_rv64e_sm4edP11processor_t6insn_tm(ptr noundef captu %59 = or disjoint i32 %57, %58 %60 = shl nuw nsw i32 %51, 10 %61 = and i32 %60, 196608 - %62 = xor i32 %59, %61 + %62 = or disjoint i32 %59, %61 %63 = tail call i32 @llvm.fshl.i32(i32 %62, i32 %62, i32 %26) %64 = getelementptr inbounds nuw [32 x i64], ptr %22, i64 0, i64 %33 %65 = load i64, ptr %64, align 8, !tbaa !3 @@ -812,7 +812,7 @@ define noundef range(i64 -2147483648, 2147483648) i64 @_Z18logged_rv32e_sm4edP11 %61 = or disjoint i32 %59, %60 %62 = shl nuw nsw i32 %53, 10 %63 = and i32 %62, 196608 - %64 = xor i32 %61, %63 + %64 = or disjoint i32 %61, %63 %65 = tail call i32 @llvm.fshl.i32(i32 %64, i32 %64, i32 %27) %66 = trunc i64 %52 to i32 %67 = xor i32 %65, %66 @@ -941,7 +941,7 @@ define noundef i64 @_Z18logged_rv64e_sm4edP11processor_t6insn_tm(ptr noundef %0, %61 = or disjoint i32 %59, %60 %62 = shl nuw nsw i32 %53, 10 %63 = and i32 %62, 196608 - %64 = xor i32 %61, %63 + %64 = or disjoint i32 %61, %63 %65 = tail call i32 @llvm.fshl.i32(i32 %64, i32 %64, i32 %27) %66 = trunc i64 %52 to i32 %67 = xor i32 %65, %66