mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 08:26:29 +00:00
[AMDGPU] Put a function used only inside assert() under NDEBUG.
llvm-svn: 309723
This commit is contained in:
parent
c6cb382a99
commit
53e0e0b017
@ -86,7 +86,9 @@ private:
|
||||
bool checkArgumentUses(Value &Arg) const;
|
||||
bool isOutArgumentCandidate(Argument &Arg) const;
|
||||
|
||||
#ifndef NDEBUG
|
||||
bool isVec3ToVec4Shuffle(Type *Ty0, Type* Ty1) const;
|
||||
#endif
|
||||
public:
|
||||
static char ID;
|
||||
|
||||
@ -185,6 +187,7 @@ bool AMDGPURewriteOutArguments::doInitialization(Module &M) {
|
||||
return false;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
bool AMDGPURewriteOutArguments::isVec3ToVec4Shuffle(Type *Ty0, Type* Ty1) const {
|
||||
VectorType *VT0 = dyn_cast<VectorType>(Ty0);
|
||||
VectorType *VT1 = dyn_cast<VectorType>(Ty1);
|
||||
@ -198,6 +201,7 @@ bool AMDGPURewriteOutArguments::isVec3ToVec4Shuffle(Type *Ty0, Type* Ty1) const
|
||||
return DL->getTypeSizeInBits(VT0->getElementType()) ==
|
||||
DL->getTypeSizeInBits(VT1->getElementType());
|
||||
}
|
||||
#endif
|
||||
|
||||
bool AMDGPURewriteOutArguments::runOnFunction(Function &F) {
|
||||
if (skipFunction(F))
|
||||
|
Loading…
Reference in New Issue
Block a user