Skip to content

Commit 0e78eae

Browse files
artagnonpfusik
andcommitted
[HashRecognize] Strip ValueEvolution
Co-authored-by: Piotr Fusik <[email protected]>
1 parent 56e6c37 commit 0e78eae

File tree

3 files changed

+211
-284
lines changed

3 files changed

+211
-284
lines changed

llvm/include/llvm/Analysis/HashRecognize.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,12 @@
2020
#include "llvm/Analysis/ScalarEvolution.h"
2121
#include "llvm/IR/PassManager.h"
2222
#include "llvm/IR/Value.h"
23-
#include "llvm/Support/KnownBits.h"
2423
#include <variant>
2524

2625
namespace llvm {
2726

2827
class LPMUpdater;
2928

30-
/// A tuple of bits that are expected to be zero, number N of them expected to
31-
/// be zero, with a boolean indicating whether it's the top or bottom N bits
32-
/// expected to be zero.
33-
using ErrBits = std::tuple<KnownBits, unsigned, bool>;
34-
3529
/// A custom std::array with 256 entries, that also has a print function.
3630
struct CRCTable : public std::array<APInt, 256> {
3731
void print(raw_ostream &OS) const;
@@ -85,7 +79,7 @@ class HashRecognize {
8579
HashRecognize(const Loop &L, ScalarEvolution &SE);
8680

8781
// The main analysis entry points.
88-
std::variant<PolynomialInfo, ErrBits, StringRef> recognizeCRC() const;
82+
std::variant<PolynomialInfo, StringRef> recognizeCRC() const;
8983
std::optional<PolynomialInfo> getResult() const;
9084

9185
// Auxilary entry point after analysis to interleave the generating polynomial

0 commit comments

Comments
 (0)