Displaying 3 results from an estimated 3 matches for "legacylicmpass".
2019 May 13
2
Is it possible to reproduce the result of opt -O3 manually?
...ulated when we give
-O3 vs when we give particular pass names.
Some passes have multiple createXYZPass() methods that accept arguments
too. These methods call non-default pass constructors, which in turn cause
the passes to behave in a different manner.
eg:
Pass *llvm::createLICMPass() { return new LegacyLICMPass(); }
Pass *llvm::createLICMPass(unsigned LicmMssaOptCap,
unsigned LicmMssaNoAccForPromotionCap) {
return new LegacyLICMPass(LicmMssaOptCap, LicmMssaNoAccForPromotionCap);
}
or
Pass *createLoopVectorizePass() { return new LoopVectorize(); }
Pass *createLoopVectorizePass(...
2019 May 09
2
Is it possible to reproduce the result of opt -O3 manually?
Dear developers,
I am trying to reproduce the results of applying opt -O3 to a source file
in the form of LLVM IR. I want to get the same IR by manually ordering the
passes used by O3 and passing them to opt.
To illustrate what I am doing on an example, as an input I use linpack
benchmark from the LLVM test suite[1]:
1. First I produce the intermediate representation using clang:
clang -O3
2020 Jan 15
2
lld does not build
...m::DominatorTree*,
llvm::TargetLibraryInfo*, llvm::TargetTransformInfo*,
llvm::ScalarEvolution*, llvm::MemorySSA*, llvm::OptimizationRemarkEmitter*,
bool)
(/opt/arm/arm-linux-compiler-20.0_Generic-AArch64_RHEL-7_aarch64-linux/llvm-bin/clang-9+0x14228f8)
#7 0x0000000001424d30 (anonymous
namespace)::LegacyLICMPass::runOnLoop(llvm::Loop*, llvm::LPPassManager&)
(/opt/arm/arm-linux-compiler-20.0_Generic-AArch64_RHEL-7_aarch64-linux/llvm-bin/clang-9+0x1424d30)
#8 0x0000000001425b60 llvm::LPPassManager::runOnFunction(llvm::Function&)
(/opt/arm/arm-linux-compiler-20.0_Generic-AArch64_RHEL-7_aarch64-linux/...