mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Don't apply type information to load instructions if it will cause collapsing
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5684 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -368,7 +368,7 @@ void GraphBuilder::visitLoadInst(LoadInst &LI) {
|
||||
Ptr.getNode()->NodeType |= DSNode::Read;
|
||||
|
||||
// Ensure a typerecord exists...
|
||||
Ptr.getNode()->mergeTypeInfo(LI.getType(), Ptr.getOffset());
|
||||
Ptr.getNode()->mergeTypeInfo(LI.getType(), Ptr.getOffset(), false);
|
||||
|
||||
if (isPointerType(LI.getType()))
|
||||
setDestTo(LI, getLink(Ptr));
|
||||
|
Reference in New Issue
Block a user