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:
68de221
)
GVN.cpp: Suppress a warning in D141712 [-Wunused-variable]
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Thu, 26 Jan 2023 00:52:38 +0000
(09:52 +0900)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Thu, 26 Jan 2023 00:53:59 +0000
(09:53 +0900)
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
c01e9e5
..
e90db02
100644
(file)
--- a/
llvm/lib/Transforms/Scalar/GVN.cpp
+++ b/
llvm/lib/Transforms/Scalar/GVN.cpp
@@
-1611,6
+1611,7
@@
bool GVNPass::PerformLoadPRE(LoadInst *Load, AvailValInBlkVect &ValuesPerBlock,
CriticalEdgePredAndLoad.size();
assert(NumUnavailablePreds != 0 &&
"Fully available value should already be eliminated!");
+ (void)NumUnavailablePreds;
// If we need to insert new load in multiple predecessors, reject it.
// FIXME: If we could restructure the CFG, we could make a common pred with