[llvm] 164845c - [GVN] Reduce expression size (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 26 00:45:51 PDT 2020
Author: Nikita Popov
Date: 2020-04-26T09:43:35+02:00
New Revision: 164845cd925adbaf70cc82d83621e5596bdc031b
URL: https://github.com/llvm/llvm-project/commit/164845cd925adbaf70cc82d83621e5596bdc031b
DIFF: https://github.com/llvm/llvm-project/commit/164845cd925adbaf70cc82d83621e5596bdc031b.diff
LOG: [GVN] Reduce expression size (NFC)
Reduce size of GVN::Expression by reordering fields to reduce padding.
Added:
Modified:
llvm/lib/Transforms/Scalar/GVN.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/GVN.cpp b/llvm/lib/Transforms/Scalar/GVN.cpp
index 4a4beccb8a62..eae6de2324be 100644
--- a/llvm/lib/Transforms/Scalar/GVN.cpp
+++ b/llvm/lib/Transforms/Scalar/GVN.cpp
@@ -115,8 +115,8 @@ static cl::opt<uint32_t> MaxNumDeps(
struct llvm::GVN::Expression {
uint32_t opcode;
- Type *type = nullptr;
bool commutative = false;
+ Type *type = nullptr;
SmallVector<uint32_t, 4> varargs;
Expression(uint32_t o = ~2U) : opcode(o) {}
More information about the llvm-commits
mailing list