aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/ARMFastISel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/ARM/ARMFastISel.cpp')
-rw-r--r--lib/Target/ARM/ARMFastISel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMFastISel.cpp b/lib/Target/ARM/ARMFastISel.cpp
index a1b9eb4..55fb7c2 100644
--- a/lib/Target/ARM/ARMFastISel.cpp
+++ b/lib/Target/ARM/ARMFastISel.cpp
@@ -389,7 +389,8 @@ bool ARMFastISel::ARMSelectLoad(const Instruction *I) {
unsigned Reg = 0;
int Offset = 0;
- // TODO: Think about using loadRegFromStackSlot() here when we can.
+ // If we're an alloca we know we have a frame index and can emit the load
+ // directly in short order.
if (ARMLoadAlloca(I))
return true;