mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Ignore the debug info intrinsics when adding instructions into alias sets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65934 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include "llvm/Analysis/AliasSetTracker.h"
|
||||
#include "llvm/Analysis/AliasAnalysis.h"
|
||||
#include "llvm/Instructions.h"
|
||||
#include "llvm/IntrinsicInst.h"
|
||||
#include "llvm/Pass.h"
|
||||
#include "llvm/Type.h"
|
||||
#include "llvm/Target/TargetData.h"
|
||||
@@ -296,6 +297,8 @@ bool AliasSetTracker::add(VAArgInst *VAAI) {
|
||||
|
||||
|
||||
bool AliasSetTracker::add(CallSite CS) {
|
||||
if (isa<DbgInfoIntrinsic>(CS.getInstruction()))
|
||||
return true; // Ignore DbgInfo Intrinsics.
|
||||
if (AA.doesNotAccessMemory(CS))
|
||||
return true; // doesn't alias anything
|
||||
|
||||
|
Reference in New Issue
Block a user