mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-25 00:35:30 +00:00
getLocationForDest should work for memset as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120380 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
72987a2742
commit
9dc9e81aa7
@ -49,6 +49,7 @@ class TargetData;
|
||||
class Pass;
|
||||
class AnalysisUsage;
|
||||
class MemTransferInst;
|
||||
class MemIntrinsic;
|
||||
|
||||
class AliasAnalysis {
|
||||
protected:
|
||||
@ -137,7 +138,7 @@ public:
|
||||
Location getLocation(const StoreInst *SI);
|
||||
Location getLocation(const VAArgInst *VI);
|
||||
static Location getLocationForSource(const MemTransferInst *MTI);
|
||||
static Location getLocationForDest(const MemTransferInst *MTI);
|
||||
static Location getLocationForDest(const MemIntrinsic *MI);
|
||||
|
||||
/// Alias analysis result - Either we know for sure that it does not alias, we
|
||||
/// know for sure it must alias, or we don't know anything: The two pointers
|
||||
|
@ -224,7 +224,7 @@ AliasAnalysis::getLocationForSource(const MemTransferInst *MTI) {
|
||||
}
|
||||
|
||||
AliasAnalysis::Location
|
||||
AliasAnalysis::getLocationForDest(const MemTransferInst *MTI) {
|
||||
AliasAnalysis::getLocationForDest(const MemIntrinsic *MTI) {
|
||||
uint64_t Size = UnknownSize;
|
||||
if (ConstantInt *C = dyn_cast<ConstantInt>(MTI->getLength()))
|
||||
Size = C->getValue().getZExtValue();
|
||||
|
Loading…
x
Reference in New Issue
Block a user