diff options
author | Tom Stellard <[email protected]> | 2012-07-30 15:51:21 +0000 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-07-30 21:10:13 +0000 |
commit | b72ab79d73b29ec087d90cf2c698adbab4db5def (patch) | |
tree | b8565d788eac69c75fd8cc0bc4f5851e98abbc14 /src/gallium/drivers/radeon/AMDILPeepholeOptimizer.cpp | |
parent | 27ae41c83dafcec09e870b3cf08b060064dbb122 (diff) |
radeon/llvm: Merge AMDILSubtarget into AMDGPUSubtarget
Diffstat (limited to 'src/gallium/drivers/radeon/AMDILPeepholeOptimizer.cpp')
-rw-r--r-- | src/gallium/drivers/radeon/AMDILPeepholeOptimizer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/radeon/AMDILPeepholeOptimizer.cpp b/src/gallium/drivers/radeon/AMDILPeepholeOptimizer.cpp index 11dae6f963f..2e5c89a2e38 100644 --- a/src/gallium/drivers/radeon/AMDILPeepholeOptimizer.cpp +++ b/src/gallium/drivers/radeon/AMDILPeepholeOptimizer.cpp @@ -125,7 +125,7 @@ private: LLVMContext *mCTX; Function *mF; - const AMDILSubtarget *mSTM; + const AMDGPUSubtarget *mSTM; SmallVector< std::pair<CallInst *, Function *>, 16> atomicFuncs; SmallVector<CallInst *, 16> isConstVec; }; // class AMDILPeepholeOpt @@ -275,7 +275,7 @@ AMDILPeepholeOpt::runOnFunction(Function &MF) { mChanged = false; mF = &MF; - mSTM = &TM.getSubtarget<AMDILSubtarget>(); + mSTM = &TM.getSubtarget<AMDGPUSubtarget>(); if (mDebug) { MF.dump(); } @@ -841,7 +841,7 @@ AMDILPeepholeOpt::optimizeBitExtract(Instruction *inst) bool AMDILPeepholeOpt::expandBFI(CallInst *CI) { - if (!CI || mSTM->calVersion() <= CAL_VERSION_SC_150) { + if (!CI) { return false; } Value *LHS = CI->getOperand(CI->getNumOperands() - 1); @@ -880,7 +880,7 @@ AMDILPeepholeOpt::expandBFI(CallInst *CI) bool AMDILPeepholeOpt::expandBFM(CallInst *CI) { - if (!CI || mSTM->calVersion() <= CAL_VERSION_SC_150) { + if (!CI) { return false; } Value *LHS = CI->getOperand(CI->getNumOperands() - 1); |