summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp b/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
index 0b16a2cfe9f..253d76f87c0 100644
--- a/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
+++ b/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
@@ -1021,6 +1021,8 @@ bool AArch64LoadStoreOpt::findMatchingStore(
ModifiedRegs.reset();
UsedRegs.reset();
+ // FIXME: We miss the case where the matching store is the first instruction
+ // in the basic block.
for (unsigned Count = 0; MBBI != E && Count < Limit;) {
--MBBI;
MachineInstr *MI = MBBI;
OpenPOWER on IntegriCloud