OSDN Git Service
(root)
/
android-x86
/
external-llvm-project.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10b4354
)
Rename function to more accurately reflect what it does.
author
Eric Christopher
<echristo@gmail.com>
Sat, 20 Jun 2020 21:37:29 +0000
(14:37 -0700)
committer
Eric Christopher
<echristo@gmail.com>
Sat, 20 Jun 2020 21:37:29 +0000
(14:37 -0700)
llvm/lib/Transforms/Scalar/GVNSink.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/Scalar/GVNSink.cpp
b/llvm/lib/Transforms/Scalar/GVNSink.cpp
index
1e3cc59
..
dfb4b7e
100644
(file)
--- a/
llvm/lib/Transforms/Scalar/GVNSink.cpp
+++ b/
llvm/lib/Transforms/Scalar/GVNSink.cpp
@@
-581,7
+581,7
@@
public:
private:
ValueTable VN;
- bool
isInstructionSinkable
(Instruction *I) {
+ bool
shouldAvoidSinkingInstruction
(Instruction *I) {
// These instructions may change or break semantics if moved.
if (isa<PHINode>(I) || I->isEHPad() || isa<AllocaInst>(I) ||
I->getType()->isTokenTy())
@@
-673,7
+673,7
@@
Optional<SinkingInstructionCandidate> GVNSink::analyzeInstructionForSinking(
NewInsts.push_back(I);
}
for (auto *I : NewInsts)
- if (
isInstructionSinkable
(I))
+ if (
shouldAvoidSinkingInstruction
(I))
return None;
// If we've restricted the incoming blocks, restrict all needed PHIs also