[all-commits] [llvm/llvm-project] e67a66: [flang][cuda] Avoid extra load in c_f_pointer lowe...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Tue Sep 10 19:33:55 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e67a6667dc2b46ece983321af89ae40ca7986b16
      https://github.com/llvm/llvm-project/commit/e67a6667dc2b46ece983321af89ae40ca7986b16
  Author: Valentin Clement (バレンタイン クレメン) <clementval at gmail.com>
  Date:   2024-09-10 (Tue, 10 Sep 2024)

  Changed paths:
    M flang/lib/Optimizer/Builder/FIRBuilder.cpp
    M flang/test/Lower/CUDA/cuda-devptr.cuf

  Log Message:
  -----------
  [flang][cuda] Avoid extra load in c_f_pointer lowering with c_devptr (#108090)

Remove unnecessary load of the `cptr` component when getting the
`__address`. `fir.coordinate_of` operation can be chained so the load is
not needed.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list