projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f4c78d
)
[GVN] Reduce expression size (NFC)
author
Nikita Popov
<nikita.ppv@gmail.com>
Wed, 22 Apr 2020 19:43:07 +0000
(21:43 +0200)
committer
Nikita Popov
<nikita.ppv@gmail.com>
Sun, 26 Apr 2020 07:43:35 +0000
(09:43 +0200)
Reduce size of GVN::Expression by reordering fields to reduce padding.
llvm/lib/Transforms/Scalar/GVN.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/Scalar/GVN.cpp
b/llvm/lib/Transforms/Scalar/GVN.cpp
index
4a4becc
..
eae6de2
100644
(file)
--- 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) {}