Skip to content

Commit 164845c

Browse files
committed
[GVN] Reduce expression size (NFC)
Reduce size of GVN::Expression by reordering fields to reduce padding.
1 parent 8f4c78d commit 164845c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Scalar/GVN.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ static cl::opt<uint32_t> MaxNumDeps(
115115

116116
struct llvm::GVN::Expression {
117117
uint32_t opcode;
118-
Type *type = nullptr;
119118
bool commutative = false;
119+
Type *type = nullptr;
120120
SmallVector<uint32_t, 4> varargs;
121121

122122
Expression(uint32_t o = ~2U) : opcode(o) {}

0 commit comments

Comments
 (0)