aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/AssumptionCache.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2021-04-06 13:17:35 -0700
committerPhilip Reames <listmail@philipreames.com>2021-04-06 13:18:53 -0700
commit908215b34636f579533ecd6671bb6213b8327dbc (patch)
tree44e7890700588401ab652686a4231604bc0195fd /llvm/lib/Analysis/AssumptionCache.cpp
parent69190f95b1698cec8366ad657000b275c2039c1b (diff)
downloadllvm-908215b34636f579533ecd6671bb6213b8327dbc.zip
llvm-908215b34636f579533ecd6671bb6213b8327dbc.tar.gz
llvm-908215b34636f579533ecd6671bb6213b8327dbc.tar.bz2
Use AssumeInst in a few more places [nfc]
Follow up to a6d2a8d6f5. These were found by simply grepping for "::assume", and are the subset of that result which looked cleaner to me using the isa/dyn_cast patterns.
Diffstat (limited to 'llvm/lib/Analysis/AssumptionCache.cpp')
-rw-r--r--llvm/lib/Analysis/AssumptionCache.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/AssumptionCache.cpp b/llvm/lib/Analysis/AssumptionCache.cpp
index 753ea5f..0d95b33 100644
--- a/llvm/lib/Analysis/AssumptionCache.cpp
+++ b/llvm/lib/Analysis/AssumptionCache.cpp
@@ -202,9 +202,9 @@ void AssumptionCache::scanFunction() {
// Go through all instructions in all blocks, add all calls to @llvm.assume
// to this cache.
for (BasicBlock &B : F)
- for (Instruction &II : B)
- if (match(&II, m_Intrinsic<Intrinsic::assume>()))
- AssumeHandles.push_back({&II, ExprResultIdx});
+ for (Instruction &I : B)
+ if (isa<AssumeInst>(&I))
+ AssumeHandles.push_back({&I, ExprResultIdx});
// Mark the scan as complete.
Scanned = true;