[llvm] [AMDGPU] Fix an invalid cast in `AMDGPULateCodeGenPrepare::visitLoadInst` (PR #122494)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 10 08:52:11 PST 2025


================
@@ -0,0 +1,43 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
+; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90a %s -o - | FileCheck %s
+
+ at g = global ptr null
----------------
shiltian wrote:

I have to make the function have some side effects to be able to generate effective code; otherwise nothing would be generated.

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


More information about the llvm-commits mailing list