[PATCH] D106630: [AbstractAttributor] Refine logic to indicate pessimistic fixed point when folding `__kmpc_is_spmd_exec_mode`
Shilei Tian via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 22 19:16:03 PDT 2021
tianshilei1992 created this revision.
Herald added subscribers: ormris, okura, uenoku, hiraditya.
Herald added a reviewer: uenoku.
tianshilei1992 requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a reviewer: jdoerfert.
Herald added a reviewer: sstefan1.
Herald added subscribers: llvm-commits, bbn, sstefan1.
Herald added a reviewer: baziotis.
Herald added a project: LLVM.
Since we are using assumed information now, the logic should be refined to avoid
unncessary assertion.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D106630
Files:
llvm/lib/Transforms/IPO/OpenMPOpt.cpp
Index: llvm/lib/Transforms/IPO/OpenMPOpt.cpp
===================================================================
--- llvm/lib/Transforms/IPO/OpenMPOpt.cpp
+++ llvm/lib/Transforms/IPO/OpenMPOpt.cpp
@@ -3678,10 +3678,8 @@
}
}
- if (KnownSPMDCount && KnownNonSPMDCount)
- return indicatePessimisticFixpoint();
-
- if (AssumedSPMDCount && AssumedNonSPMDCount)
+ if ((AssumedSPMDCount + KnownSPMDCount) &&
+ (AssumedNonSPMDCount + KnownNonSPMDCount))
return indicatePessimisticFixpoint();
auto &Ctx = getAnchorValue().getContext();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106630.361067.patch
Type: text/x-patch
Size: 576 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210723/60555386/attachment.bin>
More information about the llvm-commits
mailing list