[llvm] 36864d4 - [AArch64] Fix minor issue introduced in D135950.

Sander de Smalen via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 19 10:02:16 PDT 2022


Author: Sander de Smalen
Date: 2022-10-19T17:01:41Z
New Revision: 36864d47d6b0e66afbae01fd6144b22816709bd3

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

LOG: [AArch64] Fix minor issue introduced in D135950.

The Key for the SubtargetMap had the StreamingSVEModeDisabled in the
wrong place. This change is non-functional, since the string (key) is
still unique.

Added: 
    

Modified: 
    llvm/lib/Target/AArch64/AArch64TargetMachine.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp b/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
index 594bb6d97a50..329f5b433f23 100644
--- a/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
+++ b/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
@@ -425,8 +425,8 @@ AArch64TargetMachine::getSubtargetImpl(const Function &F) const {
   Key += "SVEMin";
   Key += std::to_string(MinSVEVectorSize);
   Key += "SVEMax";
-  Key += "StreamingSVEModeDisabled=" + std::to_string(StreamingSVEModeDisabled);
   Key += std::to_string(MaxSVEVectorSize);
+  Key += "StreamingSVEModeDisabled=" + std::to_string(StreamingSVEModeDisabled);
   Key += CPU;
   Key += TuneCPU;
   Key += FS;


        


More information about the llvm-commits mailing list