summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86FastISel.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-05-21 20:53:24 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-05-21 20:53:24 +0000
commit3858451e09a1176c9d98a05ba7e051d65fd7ba4b (patch)
tree8642864364585626d3058549798f7b91559369f7 /llvm/lib/Target/X86/X86FastISel.cpp
parentb54367d2f8f776583c2c77075fc0460e663c743f (diff)
downloadbcm5719-llvm-3858451e09a1176c9d98a05ba7e051d65fd7ba4b.tar.gz
bcm5719-llvm-3858451e09a1176c9d98a05ba7e051d65fd7ba4b.zip
- Change MachineInstr::findRegisterDefOperandIdx so it can also look for defs
that are aliases of the specified register. - Rename modifiesRegister to definesRegister since it's looking a def of the specific register or one of its super-registers. It's not looking for def of a sub-register or alias that could change the specified register. - Added modifiesRegister to look for defs of aliases. llvm-svn: 104377
Diffstat (limited to 'llvm/lib/Target/X86/X86FastISel.cpp')
-rw-r--r--llvm/lib/Target/X86/X86FastISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp
index 7f97b4860fa..53c43614131 100644
--- a/llvm/lib/Target/X86/X86FastISel.cpp
+++ b/llvm/lib/Target/X86/X86FastISel.cpp
@@ -916,7 +916,7 @@ bool X86FastISel::X86SelectBranch(const Instruction *I) {
RI = MBB->rbegin(), RE = MBB->rend(); RI != RE; ++RI) {
const MachineInstr &MI = *RI;
- if (MI.modifiesRegister(Reg)) {
+ if (MI.definesRegister(Reg)) {
unsigned Src, Dst, SrcSR, DstSR;
if (getInstrInfo()->isMoveInstr(MI, Src, Dst, SrcSR, DstSR)) {
OpenPOWER on IntegriCloud