diff options
author | Max Kazantsev <mkazantsev@azul.com> | 2023-02-20 18:38:07 +0700 |
---|---|---|
committer | Max Kazantsev <mkazantsev@azul.com> | 2023-02-20 18:38:07 +0700 |
commit | 0cbb8ec030e23c0e13331b5d54155def8c901b36 (patch) | |
tree | 0597fc68b3703110cd721de2a3cbb048fccdc1a2 /llvm/include | |
parent | 3e84fc857f28479cd9574f72efcba7eb8f60d602 (diff) | |
download | llvm-0cbb8ec030e23c0e13331b5d54155def8c901b36.zip llvm-0cbb8ec030e23c0e13331b5d54155def8c901b36.tar.gz llvm-0cbb8ec030e23c0e13331b5d54155def8c901b36.tar.bz2 |
Revert "[AssumptionCache] caches @llvm.experimental.guard's"
This reverts commit f9599bbc7a3f831e1793a549d8a7a19265f3e504.
For some reason it caused us a huge compile time regression in downstream
workloads. Not sure whether the source of it is in upstream code ir not.
Temporarily reverting until investigated.
Differential Revision: https://reviews.llvm.org/D142330
Diffstat (limited to 'llvm/include')
-rw-r--r-- | llvm/include/llvm/Analysis/AssumptionCache.h | 8 | ||||
-rw-r--r-- | llvm/include/llvm/IR/IntrinsicInst.h | 13 |
2 files changed, 5 insertions, 16 deletions
diff --git a/llvm/include/llvm/Analysis/AssumptionCache.h b/llvm/include/llvm/Analysis/AssumptionCache.h index 838426d..12dd9b0 100644 --- a/llvm/include/llvm/Analysis/AssumptionCache.h +++ b/llvm/include/llvm/Analysis/AssumptionCache.h @@ -26,7 +26,7 @@ namespace llvm { -class CondGuardInst; +class AssumeInst; class Function; class raw_ostream; class TargetTransformInfo; @@ -120,15 +120,15 @@ public: /// /// The call passed in must be an instruction within this function and must /// not already be in the cache. - void registerAssumption(CondGuardInst *CI); + void registerAssumption(AssumeInst *CI); /// Remove an \@llvm.assume intrinsic from this function's cache if it has /// been added to the cache earlier. - void unregisterAssumption(CondGuardInst *CI); + void unregisterAssumption(AssumeInst *CI); /// Update the cache of values being affected by this assumption (i.e. /// the values about which this assumption provides information). - void updateAffectedValues(CondGuardInst *CI); + void updateAffectedValues(AssumeInst *CI); /// Clear the cache of \@llvm.assume intrinsics for a function. /// diff --git a/llvm/include/llvm/IR/IntrinsicInst.h b/llvm/include/llvm/IR/IntrinsicInst.h index 5de0107..df6ce27 100644 --- a/llvm/include/llvm/IR/IntrinsicInst.h +++ b/llvm/include/llvm/IR/IntrinsicInst.h @@ -1513,20 +1513,9 @@ public: } }; -/// This represents intrinsics that guard a condition -class CondGuardInst : public IntrinsicInst { -public: - static bool classof(const IntrinsicInst *I) { - return I->getIntrinsicID() == Intrinsic::assume || - I->getIntrinsicID() == Intrinsic::experimental_guard; - } - static bool classof(const Value *V) { - return isa<IntrinsicInst>(V) && classof(cast<IntrinsicInst>(V)); - } -}; /// This represents the llvm.assume intrinsic. -class AssumeInst : public CondGuardInst { +class AssumeInst : public IntrinsicInst { public: static bool classof(const IntrinsicInst *I) { return I->getIntrinsicID() == Intrinsic::assume; |