mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 16:24:23 +00:00
Zap the last two -Wself-assign warnings in llvm.
Simplify RALinScan::DowngradeRegister with TRI::getOverlaps while we are there. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122940 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -933,13 +933,9 @@ LiveInterval *RALinScan::hasNextReloadInterval(LiveInterval *cur) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void RALinScan::DowngradeRegister(LiveInterval *li, unsigned Reg) {
|
void RALinScan::DowngradeRegister(LiveInterval *li, unsigned Reg) {
|
||||||
bool isNew = DowngradedRegs.insert(Reg);
|
for (const unsigned *AS = tri_->getOverlaps(Reg); *AS; ++AS) {
|
||||||
(void)isNew; // Silence compiler warning.
|
bool isNew = DowngradedRegs.insert(*AS);
|
||||||
assert(isNew && "Multiple reloads holding the same register?");
|
(void)isNew; // Silence compiler warning.
|
||||||
DowngradeMap.insert(std::make_pair(li->reg, Reg));
|
|
||||||
for (const unsigned *AS = tri_->getAliasSet(Reg); *AS; ++AS) {
|
|
||||||
isNew = DowngradedRegs.insert(*AS);
|
|
||||||
isNew = isNew; // Silence compiler warning.
|
|
||||||
assert(isNew && "Multiple reloads holding the same register?");
|
assert(isNew && "Multiple reloads holding the same register?");
|
||||||
DowngradeMap.insert(std::make_pair(li->reg, *AS));
|
DowngradeMap.insert(std::make_pair(li->reg, *AS));
|
||||||
}
|
}
|
||||||
|
@ -97,7 +97,8 @@ InlineHalfPowrs(const std::vector<Instruction *> &HalfPowrs,
|
|||||||
|
|
||||||
InlineFunctionInfo IFI(0, TD);
|
InlineFunctionInfo IFI(0, TD);
|
||||||
bool B = InlineFunction(Call, IFI);
|
bool B = InlineFunction(Call, IFI);
|
||||||
assert(B && "half_powr didn't inline?"); B=B;
|
assert(B && "half_powr didn't inline?");
|
||||||
|
(void)B;
|
||||||
|
|
||||||
BasicBlock *NewBody = NewBlock->getSinglePredecessor();
|
BasicBlock *NewBody = NewBlock->getSinglePredecessor();
|
||||||
assert(NewBody);
|
assert(NewBody);
|
||||||
|
Reference in New Issue
Block a user