diff options
| author | Eric Christopher <echristo@apple.com> | 2010-10-17 06:07:26 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@apple.com> | 2010-10-17 06:07:26 +0000 |
| commit | 730764da6222850d57ee1ceda274fd6c6771368a (patch) | |
| tree | 1a735d578bc421a705436b5a283b785034f3b8b4 /llvm/lib | |
| parent | 889c1e7d80958377f1e2871d5fea7ddd785130b6 (diff) | |
| download | bcm5719-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.cpp | 2 |
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); |

