[PATCH] D18713: [OpenCL] Generate bitcast when target address space does not change.
Anastasia Stulova via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 4 10:41:22 PDT 2016
Anastasia added a comment.
LG, apart from renaming the test file.
Btw, there is another place in lib/CodeGen/CGExprScalar.cpp with CreateAddrSpaceCast call too. I am wondering if that could have the same issue... if yes, may be we should fix it already now.
================
Comment at: test/CodeGenOpenCL/2016-04-01-addrcast.cl:1
@@ +1,2 @@
+// RUN: %clang_cc1 %s -triple x86_64-unknown-linux-gnu -O0 -cl-std=CL2.0 -emit-llvm -o - | FileCheck %s
+
----------------
Can we rename the file to just contain the name i.e. something like addrspacecast.cl would be fine.
Actually, we also have similar functionality in test/CodeGenOpenCL/address-spaces-conversions.cl. Do you think it might make sense to integrate? Let's say to have two RUN lines with and w/o -ffake-address-space-map.
http://reviews.llvm.org/D18713
More information about the cfe-commits
mailing list