#include "llvm/Analysis/AssumptionCache.h"
#include "llvm/Analysis/LoopInfo.h"
#include "llvm/Analysis/LoopUnrollAnalyzer.h"
#include "llvm/Analysis/ScalarEvolution.h"
#include "llvm/Analysis/TargetLibraryInfo.h"
#include "llvm/AsmParser/Parser.h"
#include "llvm/IR/Dominators.h"
#include "llvm/Support/SourceMgr.h"
#include "gtest/gtest.h"
usingnamespacellvm;
SimplifiedValuesVectorTy;
static void
runUnrollAnalyzer(Module &M, StringRef FuncName,
SimplifiedValuesVectorTy &SimplifiedValuesVector) { … }
std::unique_ptr<Module> makeLLVMModule(LLVMContext &Context,
const char *ModuleStr) { … }
TEST(UnrollAnalyzerTest, BasicSimplifications) { … }
TEST(UnrollAnalyzerTest, OuterLoopSimplification) { … }
TEST(UnrollAnalyzerTest, CmpSimplifications) { … }
TEST(UnrollAnalyzerTest, PtrCmpSimplifications) { … }
TEST(UnrollAnalyzerTest, CastSimplifications) { … }