mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Propagate TargetLibraryInfo throughout ConstantFolding.cpp and
InstructionSimplify.cpp. Other fixups as needed. Part of rdar://10500969 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145559 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1021,7 +1021,7 @@ void LoopUnswitch::SimplifyCode(std::vector<Instruction*> &Worklist, Loop *L) {
|
||||
// See if instruction simplification can hack this up. This is common for
|
||||
// things like "select false, X, Y" after unswitching made the condition be
|
||||
// 'false'.
|
||||
if (Value *V = SimplifyInstruction(I, 0, DT))
|
||||
if (Value *V = SimplifyInstruction(I, 0, 0, DT))
|
||||
if (LI->replacementPreservesLCSSAForm(I, V)) {
|
||||
ReplaceUsesOfWith(I, V, Worklist, L, LPM);
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user