[PATCH] D82235: Blacklisted -> Excluded : GVNSink
Eric Christopher via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 19 14:09:44 PDT 2020
echristo created this revision.
echristo added a reviewer: mehdi_amini.
Herald added subscribers: aaron.ballman, hiraditya, mcrosier.
Herald added a project: LLVM.
As discussed.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D82235
Files:
llvm/lib/Transforms/Scalar/GVNSink.cpp
Index: llvm/lib/Transforms/Scalar/GVNSink.cpp
===================================================================
--- llvm/lib/Transforms/Scalar/GVNSink.cpp
+++ llvm/lib/Transforms/Scalar/GVNSink.cpp
@@ -581,7 +581,7 @@
private:
ValueTable VN;
- bool isInstructionBlacklisted(Instruction *I) {
+ bool isInstructionExcluded(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 @@
NewInsts.push_back(I);
}
for (auto *I : NewInsts)
- if (isInstructionBlacklisted(I))
+ if (isInstructionExcluded(I))
return None;
// If we've restricted the incoming blocks, restrict all needed PHIs also
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82235.272178.patch
Type: text/x-patch
Size: 773 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200619/431e5c60/attachment.bin>
More information about the llvm-commits
mailing list