[PATCH] D71852: [Attributor] Reach optimistic fixpoint in AAValueSimplify when the value is constant or undef
Hideto Ueno via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 24 21:22:18 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rG1d5d074aef2a: [Attributor] Reach optimistic fixpoint in AAValueSimplify when the value is… (authored by uenoku).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71852/new/
https://reviews.llvm.org/D71852
Files:
llvm/lib/Transforms/IPO/Attributor.cpp
Index: llvm/lib/Transforms/IPO/Attributor.cpp
===================================================================
--- llvm/lib/Transforms/IPO/Attributor.cpp
+++ llvm/lib/Transforms/IPO/Attributor.cpp
@@ -4072,6 +4072,14 @@
return Changed | AAValueSimplify::manifest(A);
}
+ /// See AbstractState::indicatePessimisticFixpoint(...).
+ ChangeStatus indicatePessimisticFixpoint() override {
+ // NOTE: Associated value will be returned in a pessimistic fixpoint and is
+ // regarded as known. That's why`indicateOptimisticFixpoint` is called.
+ SimplifiedAssociatedValue = &getAssociatedValue();
+ return indicateOptimisticFixpoint();
+ }
+
protected:
// An assumed simplified value. Initially, it is set to Optional::None, which
// means that the value is not clear under current assumption. If in the
@@ -4171,7 +4179,7 @@
Value &V = getAnchorValue();
// TODO: add other stuffs
- if (isa<Constant>(V) || isa<UndefValue>(V))
+ if (isa<Constant>(V))
indicatePessimisticFixpoint();
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71852.235251.patch
Type: text/x-patch
Size: 1041 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191225/be1f1fa2/attachment.bin>
More information about the llvm-commits
mailing list