git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173040
91177308-0d34-0410-b5e6-
96231b3b80d8
DebugLoc DL = MI.getDebugLoc();
// Kill is only allowed in pixel shaders
DebugLoc DL = MI.getDebugLoc();
// Kill is only allowed in pixel shaders
- MachineFunction &MF = *MBB.getParent();
- SIMachineFunctionInfo *Info = MF.getInfo<SIMachineFunctionInfo>();
- assert(Info->ShaderType == ShaderType::PIXEL);
+ assert(MBB.getParent()->getInfo<SIMachineFunctionInfo>()->ShaderType ==
+ ShaderType::PIXEL);
// Clear this pixel from the exec mask if the operand is negative
BuildMI(MBB, &MI, DL, TII->get(AMDGPU::V_CMPX_LE_F32_e32), AMDGPU::VCC)
// Clear this pixel from the exec mask if the operand is negative
BuildMI(MBB, &MI, DL, TII->get(AMDGPU::V_CMPX_LE_F32_e32), AMDGPU::VCC)