mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
Skip debug info intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98584 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d6e59084d0
commit
7b9f6b1b21
@ -43,6 +43,7 @@
|
||||
#include "llvm/BasicBlock.h"
|
||||
#include "llvm/Constants.h"
|
||||
#include "llvm/Instructions.h"
|
||||
#include "llvm/IntrinsicInst.h"
|
||||
#include "llvm/LLVMContext.h"
|
||||
#include "llvm/Type.h"
|
||||
#include "llvm/Analysis/Dominators.h"
|
||||
@ -556,6 +557,9 @@ void IndVarSimplify::SinkUnusedInvariants(Loop *L) {
|
||||
// dominates the exit block.
|
||||
if (I->mayHaveSideEffects() || I->mayReadFromMemory())
|
||||
continue;
|
||||
// Skip debug info intrinsics.
|
||||
if (isa<DbgInfoIntrinsic>(I))
|
||||
continue;
|
||||
// Don't sink static AllocaInsts out of the entry block, which would
|
||||
// turn them into dynamic allocas!
|
||||
if (AllocaInst *AI = dyn_cast<AllocaInst>(I))
|
||||
|
Loading…
Reference in New Issue
Block a user