mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
[PM] Simplify (ha! ha!) the way that instcombine calls the
SimplifyLibCalls utility by sinking it into the specific call part of the combiner. This will avoid us needing to do any contortions to build this object in a subsequent refactoring I'm doing and seems generally better factored. We don't need this utility everywhere and it carries no interesting state so we might as well build it on demand. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226654 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2943,12 +2943,6 @@ bool InstCombiner::run(Function &F, AssumptionCache *AC, const DataLayout *DL,
|
||||
F.getContext(), TargetFolder(DL), InstCombineIRInserter(Worklist, AC));
|
||||
Builder = &TheBuilder;
|
||||
|
||||
auto InstCombineRAUW = [this](Instruction *From, Value *With) {
|
||||
ReplaceInstUsesWith(*From, With);
|
||||
};
|
||||
LibCallSimplifier TheSimplifier(DL, TLI, InstCombineRAUW);
|
||||
Simplifier = &TheSimplifier;
|
||||
|
||||
bool EverMadeChange = false;
|
||||
|
||||
// Lower dbg.declare intrinsics otherwise their value may be clobbered
|
||||
|
||||
Reference in New Issue
Block a user