[all-commits] [llvm/llvm-project] 52f6f4: [GlobalOpt] Handle DL.getAllocaAddrSpace() != 0 (#...
Tyler Lanphear via All-commits
all-commits at lists.llvm.org
Sat Sep 9 10:12:54 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 52f6f418c78586817f78f3429991672073a05931
https://github.com/llvm/llvm-project/commit/52f6f418c78586817f78f3429991672073a05931
Author: Tyler Lanphear <tylanphear at gmail.com>
Date: 2023-09-09 (Sat, 09 Sep 2023)
Changed paths:
M llvm/lib/Transforms/IPO/GlobalOpt.cpp
A llvm/test/Transforms/GlobalOpt/global_alloca_diff_addrspaces.ll
Log Message:
-----------
[GlobalOpt] Handle DL.getAllocaAddrSpace() != 0 (#65847)
Fix crash on RAUW due to locals and globals having different address
spaces. This is the intent of the original code, but it assumes the
alloca address space is 0. This patch fixes the code to check that the
global's address space matches `DL.getAllocaAddrSpace()` instead.
Fixes #65155
More information about the All-commits
mailing list