diff options
author | Nick Hildenbrandt <hldnbrnd@uiuc.edu> | 2002-11-06 20:07:54 +0000 |
---|---|---|
committer | Nick Hildenbrandt <hldnbrnd@uiuc.edu> | 2002-11-06 20:07:54 +0000 |
commit | 2cf2cbcefb0c4e3a3a3c9f35c6890d826385a1b0 (patch) | |
tree | 67c7b75c4cfd80146dd8e36c3b3b2e9fe46483e8 /lib/Target/CBackend/CBackend.cpp | |
parent | 4476ceb414afc6aebdcd1e055478175d95b62cb9 (diff) |
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
Diffstat (limited to 'lib/Target/CBackend/CBackend.cpp')
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index bd2e37647e..cdbe62d104 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -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. |