summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-07-06 23:26:23 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-07-06 23:26:23 +0000
commit48deb125933b7e85442e83ec0a43040bc7821461 (patch)
treeb9e4f219503d5eef2eaa1c96193f876d10b5e0c6 /llvm/lib/Target/ARM
parentf031b71f7efe5405e813311f18588ed1d2560f3c (diff)
downloadbcm5719-llvm-48deb125933b7e85442e83ec0a43040bc7821461.tar.gz
bcm5719-llvm-48deb125933b7e85442e83ec0a43040bc7821461.zip
Track defs for all aliases in NEONMoveFix.
This means that an instruction defining an S register will affect the domain of the parent D register. llvm-svn: 107725
Diffstat (limited to 'llvm/lib/Target/ARM')
-rw-r--r--llvm/lib/Target/ARM/NEONMoveFix.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/NEONMoveFix.cpp b/llvm/lib/Target/ARM/NEONMoveFix.cpp
index 0a4400cc7dd..bbdd3c7f7c3 100644
--- a/llvm/lib/Target/ARM/NEONMoveFix.cpp
+++ b/llvm/lib/Target/ARM/NEONMoveFix.cpp
@@ -105,8 +105,8 @@ bool NEONMoveFixPass::InsertMoves(MachineBasicBlock &MBB) {
unsigned MOReg = MO.getReg();
Defs[MOReg] = MI;
- // Catch subregs as well.
- for (const unsigned *R = TRI->getSubRegisters(MOReg); *R; ++R)
+ // Catch aliases as well.
+ for (const unsigned *R = TRI->getAliasSet(MOReg); *R; ++R)
Defs[*R] = MI;
}
}
OpenPOWER on IntegriCloud