[llvm] e70f9e2 - [LoongArch] Remove the added in #116762

Weining Lu via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 24 17:34:18 PST 2024


Author: Weining Lu
Date: 2024-11-25T09:33:55+08:00
New Revision: e70f9e20964161abd3518d77b9efc736c6b6255e

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

LOG: [LoongArch] Remove the  added in #116762

Added: 
    

Modified: 
    llvm/lib/TargetParser/Host.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/TargetParser/Host.cpp b/llvm/lib/TargetParser/Host.cpp
index e0c857b60c4096..51d6b7cb9b1fd6 100644
--- a/llvm/lib/TargetParser/Host.cpp
+++ b/llvm/lib/TargetParser/Host.cpp
@@ -2011,7 +2011,7 @@ const StringMap<bool> sys::getHostCPUFeatures() {
 const StringMap<bool> sys::getHostCPUFeatures() {
   unsigned long hwcap = getauxval(AT_HWCAP);
   bool HasFPU = hwcap & (1UL << 3); // HWCAP_LOONGARCH_FPU
-  const uint32_t cpucfg2 = 0x2, cpucfg3 = 0x3;
+  uint32_t cpucfg2 = 0x2, cpucfg3 = 0x3;
   __asm__("cpucfg %[cpucfg2], %[cpucfg2]\n\t" : [cpucfg2] "+r"(cpucfg2));
   __asm__("cpucfg %[cpucfg3], %[cpucfg3]\n\t" : [cpucfg3] "+r"(cpucfg3));
 


        


More information about the llvm-commits mailing list