mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +00:00
Loads and stores can't be inlined. This fixes test/Singlesource/matrixTranspose
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4579 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4476ceb414
commit
2cf2cbcefb
@ -94,7 +94,8 @@ namespace {
|
||||
// Must be an expression, must be used exactly once. If it is dead, we
|
||||
// emit it inline where it would go.
|
||||
if (I.getType() == Type::VoidTy || I.use_size() != 1 ||
|
||||
isa<TerminatorInst>(I) || isa<CallInst>(I) || isa<PHINode>(I))
|
||||
isa<TerminatorInst>(I) || isa<CallInst>(I) || isa<PHINode>(I) ||
|
||||
isa<LoadInst>(I)) // Don't inline a load across a store!
|
||||
return false;
|
||||
|
||||
// Only inline instruction it it's use is in the same BB as the inst.
|
||||
|
@ -94,7 +94,8 @@ namespace {
|
||||
// Must be an expression, must be used exactly once. If it is dead, we
|
||||
// emit it inline where it would go.
|
||||
if (I.getType() == Type::VoidTy || I.use_size() != 1 ||
|
||||
isa<TerminatorInst>(I) || isa<CallInst>(I) || isa<PHINode>(I))
|
||||
isa<TerminatorInst>(I) || isa<CallInst>(I) || isa<PHINode>(I) ||
|
||||
isa<LoadInst>(I)) // Don't inline a load across a store!
|
||||
return false;
|
||||
|
||||
// Only inline instruction it it's use is in the same BB as the inst.
|
||||
|
Loading…
Reference in New Issue
Block a user