[clang] [llvm] [openmp] [PGO][OpenMP] Instrumentation for GPU devices (PR #76587)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 16 11:59:26 PST 2024


================
@@ -2067,6 +2067,10 @@ Constant *ConstantExpr::getBitCast(Constant *C, Type *DstTy,
 
 Constant *ConstantExpr::getAddrSpaceCast(Constant *C, Type *DstTy,
                                          bool OnlyIfReduced) {
+  // Skip cast if types are identical
----------------
jhuber6 wrote:

Don't think we want to change this function. Was this giving incorrect results without this? Figured a no-op would be valid.

https://github.com/llvm/llvm-project/pull/76587


More information about the cfe-commits mailing list