Mercurial > hg > CbC > CbC_llvm
diff lib/Target/NVPTX/NVPTXImageOptimizer.cpp @ 121:803732b1fca8
LLVM 5.0
author | kono |
---|---|
date | Fri, 27 Oct 2017 17:07:41 +0900 |
parents | 1172e4bd9c6f |
children | c2174574ed3a |
line wrap: on
line diff
--- a/lib/Target/NVPTX/NVPTXImageOptimizer.cpp Fri Nov 25 19:14:25 2016 +0900 +++ b/lib/Target/NVPTX/NVPTXImageOptimizer.cpp Fri Oct 27 17:07:41 2017 +0900 @@ -96,9 +96,7 @@ // This is an OpenCL sampler, so it must be a samplerref replaceWith(&I, ConstantInt::getTrue(I.getContext())); return true; - } else if (isImageWriteOnly(*TexHandle) || - isImageReadWrite(*TexHandle) || - isImageReadOnly(*TexHandle)) { + } else if (isImage(*TexHandle)) { // This is an OpenCL image, so it cannot be a samplerref replaceWith(&I, ConstantInt::getFalse(I.getContext())); return true;