mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
Use range for
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208617 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2f5f1c2ccb
commit
76aa42c199
@ -1811,8 +1811,7 @@ FoldOperand(SDNode *ParentNode, unsigned SrcIdx, SDValue &Src, SDValue &Neg,
|
||||
TII->getOperandIdx(Opcode, AMDGPU::OpName::src1_W)
|
||||
};
|
||||
std::vector<unsigned> Consts;
|
||||
for (unsigned i = 0; i < sizeof(SrcIndices) / sizeof(int); i++) {
|
||||
int OtherSrcIdx = SrcIndices[i];
|
||||
for (int OtherSrcIdx : SrcIndices) {
|
||||
int OtherSelIdx = TII->getSelIdx(Opcode, OtherSrcIdx);
|
||||
if (OtherSrcIdx < 0 || OtherSelIdx < 0)
|
||||
continue;
|
||||
|
@ -71,10 +71,9 @@ const TargetRegisterClass *SIRegisterInfo::getPhysRegClass(unsigned Reg) const {
|
||||
&AMDGPU::SReg_256RegClass
|
||||
};
|
||||
|
||||
for (unsigned i = 0, e = sizeof(BaseClasses) /
|
||||
sizeof(const TargetRegisterClass*); i != e; ++i) {
|
||||
if (BaseClasses[i]->contains(Reg)) {
|
||||
return BaseClasses[i];
|
||||
for (const TargetRegisterClass *BaseClass : BaseClasses) {
|
||||
if (BaseClass->contains(Reg)) {
|
||||
return BaseClass;
|
||||
}
|
||||
}
|
||||
return nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user