[llvm] r374701 - [Attributor] Remove unused verification flag
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 12 22:07:00 PDT 2019
Author: jdoerfert
Date: Sat Oct 12 22:07:00 2019
New Revision: 374701
URL: http://llvm.org/viewvc/llvm-project?rev=374701&view=rev
Log:
[Attributor] Remove unused verification flag
We use the verify max iteration now which is more reliable.
Modified:
llvm/trunk/lib/Transforms/IPO/Attributor.cpp
Modified: llvm/trunk/lib/Transforms/IPO/Attributor.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/Attributor.cpp?rev=374701&r1=374700&r2=374701&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/Attributor.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/Attributor.cpp Sat Oct 12 22:07:00 2019
@@ -125,12 +125,6 @@ static cl::opt<bool> ManifestInternal(
cl::desc("Manifest Attributor internal string attributes."),
cl::init(false));
-static cl::opt<bool> VerifyAttributor(
- "attributor-verify", cl::Hidden,
- cl::desc("Verify the Attributor deduction and "
- "manifestation of attributes -- may issue false-positive errors"),
- cl::init(false));
-
static cl::opt<unsigned> DepRecInterval(
"attributor-dependence-recompute-interval", cl::Hidden,
cl::desc("Number of iterations until dependences are recomputed."),
@@ -4501,24 +4495,6 @@ ChangeStatus Attributor::run(Module &M)
<< " arguments while " << NumAtFixpoint
<< " were in a valid fixpoint state\n");
- // If verification is requested, we finished this run at a fixpoint, and the
- // IR was changed, we re-run the whole fixpoint analysis, starting at
- // re-initialization of the arguments. This re-run should not result in an IR
- // change. Though, the (virtual) state of attributes at the end of the re-run
- // might be more optimistic than the known state or the IR state if the better
- // state cannot be manifested.
- if (VerifyAttributor && FinishedAtFixpoint &&
- ManifestChange == ChangeStatus::CHANGED) {
- VerifyAttributor = false;
- ChangeStatus VerifyStatus = run(M);
- if (VerifyStatus != ChangeStatus::UNCHANGED)
- llvm_unreachable(
- "Attributor verification failed, re-run did result in an IR change "
- "even after a fixpoint was reached in the original run. (False "
- "positives possible!)");
- VerifyAttributor = true;
- }
-
NumAttributesManifested += NumManifested;
NumAttributesValidFixpoint += NumAtFixpoint;
More information about the llvm-commits
mailing list