From 2a16e1ff7d2735001dbe40e607823857f4bedd0e Mon Sep 17 00:00:00 2001 From: eopXD Date: Sat, 14 Jan 2023 05:19:49 -0800 Subject: [PATCH] [7/15][Clang][RISCV][NFC] Correct the default value for Policy to TAMU The default value is set to `Omit`, but in fact the value is then assigned in `updateNamesAndPolicy`, which is set to TUMU when masked and TAMU when unmasked. This commit demonstrates so and further remove another dependency of `Omit`. This is the 7th commit of a patch-set that aims to change the default policy for RVV intrinsics from TAMU to TAMA. Please refer to the cover letter in the 1st commit (D141573) for an overview. Reviewed By: craig.topper, kito-cheng Differential Revision: https://reviews.llvm.org/D141759 --- clang/include/clang/Support/RISCVVIntrinsicUtils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/include/clang/Support/RISCVVIntrinsicUtils.h b/clang/include/clang/Support/RISCVVIntrinsicUtils.h index e64bab6..57faab0 100644 --- a/clang/include/clang/Support/RISCVVIntrinsicUtils.h +++ b/clang/include/clang/Support/RISCVVIntrinsicUtils.h @@ -99,8 +99,8 @@ struct Policy { Agnostic, Omit, // No policy required. }; - PolicyType TailPolicy = Omit; - PolicyType MaskPolicy = Omit; + PolicyType TailPolicy = Agnostic; + PolicyType MaskPolicy = Undisturbed; bool HasTailPolicy, HasMaskPolicy; Policy(bool HasTailPolicy, bool HasMaskPolicy) : IsUnspecified(true), HasTailPolicy(HasTailPolicy), -- 2.7.4