[Attributor] Fix AAExecutionDomain returning true on invalid states
authorJoseph Huber <jhuber6@vols.utk.edu>
Tue, 22 Jun 2021 20:58:13 +0000 (16:58 -0400)
committerHuber, Joseph <huberjn@ornl.gov>
Tue, 22 Jun 2021 22:12:43 +0000 (18:12 -0400)
commit1cfdcae653140b1df5932767862a08f5a1b6106f
tree14c8a0913c4192d3bb6586280aa872afaae84c45
parenta8bf33ad36837b398d3dabfd5fff1142660a1dca
[Attributor] Fix AAExecutionDomain returning true on invalid states

This patch fixes a problem with the AAExecutionDomain attributor not
checking if it is in a valid state. This can cause it to incorrectly
return that a block is executed in a single threaded context after the
attributor failed for any reason.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D103186
llvm/lib/Transforms/IPO/OpenMPOpt.cpp