Ignore:
Timestamp:
Jul 13, 2015, 2:11:13 PM (4 years ago)
Author:
cameron
Message:

Upgrade LLVM to 3.6.1

Location:
icGREP/icgrep-devel/llvm-3.6.1.src
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/llvm-3.6.1.src/lib/Target/R600/SIFoldOperands.cpp

    r4574 r4664  
    210210
    211211        if (FoldingImm) {
    212           const TargetRegisterClass *UseRC = MRI.getRegClass(UseOp.getReg());
     212          unsigned UseReg = UseOp.getReg();
     213          const TargetRegisterClass *UseRC
     214            = TargetRegisterInfo::isVirtualRegister(UseReg) ?
     215            MRI.getRegClass(UseReg) :
     216            TRI.getRegClass(UseReg);
     217
    213218          Imm = APInt(64, OpToFold.getImm());
    214219
     
    229234          // copy to a MOV.
    230235          if (UseMI->getOpcode() == AMDGPU::COPY) {
    231             unsigned MovOp = TII->getMovOpcode(
    232                 MRI.getRegClass(UseMI->getOperand(0).getReg()));
     236            unsigned DestReg = UseMI->getOperand(0).getReg();
     237            const TargetRegisterClass *DestRC
     238              = TargetRegisterInfo::isVirtualRegister(DestReg) ?
     239              MRI.getRegClass(DestReg) :
     240              TRI.getRegClass(DestReg);
     241
     242            unsigned MovOp = TII->getMovOpcode(DestRC);
    233243            if (MovOp == AMDGPU::COPY)
    234244              continue;
Note: See TracChangeset for help on using the changeset viewer.