mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 20:26:07 +00:00
remove a isFreeCall check: it is a callinst that can write to memory already.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85863 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -24,7 +24,6 @@
|
|||||||
#include "llvm/ADT/SmallPtrSet.h"
|
#include "llvm/ADT/SmallPtrSet.h"
|
||||||
#include "llvm/Analysis/ConstantFolding.h"
|
#include "llvm/Analysis/ConstantFolding.h"
|
||||||
#include "llvm/Analysis/DebugInfo.h"
|
#include "llvm/Analysis/DebugInfo.h"
|
||||||
#include "llvm/Analysis/MemoryBuiltins.h"
|
|
||||||
#include "llvm/Analysis/ProfileInfo.h"
|
#include "llvm/Analysis/ProfileInfo.h"
|
||||||
#include "llvm/Target/TargetData.h"
|
#include "llvm/Target/TargetData.h"
|
||||||
#include "llvm/Support/GetElementPtrTypeIterator.h"
|
#include "llvm/Support/GetElementPtrTypeIterator.h"
|
||||||
@@ -60,8 +59,8 @@ bool llvm::isSafeToLoadUnconditionally(Value *V, Instruction *ScanFrom) {
|
|||||||
|
|
||||||
// If we see a free or a call which may write to memory (i.e. which might do
|
// If we see a free or a call which may write to memory (i.e. which might do
|
||||||
// a free) the pointer could be marked invalid.
|
// a free) the pointer could be marked invalid.
|
||||||
if (isFreeCall(BBI) || (isa<CallInst>(BBI) && BBI->mayWriteToMemory() &&
|
if (isa<CallInst>(BBI) && BBI->mayWriteToMemory() &&
|
||||||
!isa<DbgInfoIntrinsic>(BBI)))
|
!isa<DbgInfoIntrinsic>(BBI))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (LoadInst *LI = dyn_cast<LoadInst>(BBI)) {
|
if (LoadInst *LI = dyn_cast<LoadInst>(BBI)) {
|
||||||
|
Reference in New Issue
Block a user