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/AMDGPUAsmPrinter.cpp

    r4574 r4664  
    343343  ProgInfo.NumVGPR = MaxVGPR + 1;
    344344  ProgInfo.NumSGPR = MaxSGPR + 1;
     345
     346  if (STM.hasSGPRInitBug()) {
     347    if (ProgInfo.NumSGPR > AMDGPUSubtarget::FIXED_SGPR_COUNT_FOR_INIT_BUG)
     348      llvm_unreachable("Too many SGPRs used with the SGPR init bug");
     349
     350    ProgInfo.NumSGPR = AMDGPUSubtarget::FIXED_SGPR_COUNT_FOR_INIT_BUG;
     351  }
    345352
    346353  ProgInfo.VGPRBlocks = (ProgInfo.NumVGPR - 1) / 4;
Note: See TracChangeset for help on using the changeset viewer.