mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
- 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104377 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -780,7 +780,7 @@ canUpdateDeletedKills(SmallVector<unsigned, 4> &Kills,
|
||||
if (!LastKill)
|
||||
return false;
|
||||
|
||||
bool isModRef = LastKill->modifiesRegister(Kill);
|
||||
bool isModRef = LastKill->definesRegister(Kill);
|
||||
NewKills.push_back(std::make_pair(std::make_pair(Kill, isModRef),
|
||||
LastKill));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user