From 6678e7b6eb534b43b92105076e6d0553e5cf7def Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 17 Nov 2010 02:44:44 +0000 Subject: Memoize results from ScalarEvolution's getUnsignedRange and getSignedRange. This fixes some extreme compile times on unrolled sha512 code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119455 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/ConstantRange.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/llvm/Support/ConstantRange.h') diff --git a/include/llvm/Support/ConstantRange.h b/include/llvm/Support/ConstantRange.h index 792b4107b1..c84e64ada9 100644 --- a/include/llvm/Support/ConstantRange.h +++ b/include/llvm/Support/ConstantRange.h @@ -47,6 +47,9 @@ public: /// explicit ConstantRange(uint32_t BitWidth, bool isFullSet = true); + /// Default constructor that creates an uninitialized ConstantRange. + ConstantRange() {} + /// Initialize a range to hold the single specified value. /// ConstantRange(const APInt &Value); -- cgit v1.2.3