From: Nick Hildenbrandt Date: Wed, 6 Nov 2002 20:07:54 +0000 (+0000) Subject: Loads and stores can't be inlined. This fixes test/Singlesource/matrixTranspose X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=2cf2cbcefb0c4e3a3a3c9f35c6890d826385a1b0;p=oota-llvm.git 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 --- diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index bd2e37647ef..cdbe62d104c 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(I) || isa(I) || isa(I)) + isa(I) || isa(I) || isa(I) || + isa(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. diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index bd2e37647ef..cdbe62d104c 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.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(I) || isa(I) || isa(I)) + isa(I) || isa(I) || isa(I) || + isa(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.