summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-10-17 06:07:26 +0000
committerEric Christopher <echristo@apple.com>2010-10-17 06:07:26 +0000
commit730764da6222850d57ee1ceda274fd6c6771368a (patch)
tree1a735d578bc421a705436b5a283b785034f3b8b4 /llvm/lib
parent889c1e7d80958377f1e2871d5fea7ddd785130b6 (diff)
downloadbcm5719-llvm-730764da6222850d57ee1ceda274fd6c6771368a.tar.gz
bcm5719-llvm-730764da6222850d57ee1ceda274fd6c6771368a.zip
Allow more load types to be materialized through the allocas.
llvm-svn: 116683
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM/ARMFastISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMFastISel.cpp b/llvm/lib/Target/ARM/ARMFastISel.cpp
index d1f3aed7614..b40cbce1da2 100644
--- a/llvm/lib/Target/ARM/ARMFastISel.cpp
+++ b/llvm/lib/Target/ARM/ARMFastISel.cpp
@@ -523,7 +523,7 @@ unsigned ARMFastISel::TargetMaterializeAlloca(const AllocaInst *AI) {
if (!FuncInfo.StaticAllocaMap.count(AI)) return 0;
EVT VT;
- if (!isTypeLegal(AI->getType(), VT)) return false;
+ if (!isLoadTypeLegal(AI->getType(), VT)) return false;
DenseMap<const AllocaInst*, int>::iterator SI =
FuncInfo.StaticAllocaMap.find(AI);
OpenPOWER on IntegriCloud