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

Joseph Huber via Openmp-commits openmp-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 Openmp-commits mailing list