[llvm] 621507c - [RDF] Remove `constexpr` from `hash
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 9 06:53:31 PDT 2023
Author: Krzysztof Parzyszek
Date: 2023-06-09T06:53:12-07:00
New Revision: 621507ce20ad8eef2986be2712631165e53b7d91
URL: https://github.com/llvm/llvm-project/commit/621507ce20ad8eef2986be2712631165e53b7d91
DIFF: https://github.com/llvm/llvm-project/commit/621507ce20ad8eef2986be2712631165e53b7d91.diff
LOG: [RDF] Remove `constexpr` from `hash
Added:
Modified:
llvm/include/llvm/CodeGen/RDFRegisters.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/RDFRegisters.h b/llvm/include/llvm/CodeGen/RDFRegisters.h
index 72fd59c82c368..f9126104ad70f 100644
--- a/llvm/include/llvm/CodeGen/RDFRegisters.h
+++ b/llvm/include/llvm/CodeGen/RDFRegisters.h
@@ -88,7 +88,7 @@ struct RegisterRef {
return !isReg() || (Reg != 0 && Mask.any());
}
- constexpr size_t hash() const {
+ size_t hash() const {
return std::hash<RegisterId>{}(Reg) ^
std::hash<LaneBitmask::Type>{}(Mask.getAsInteger());
}
More information about the llvm-commits
mailing list