[all-commits] [llvm/llvm-project] 0b043b: This patch extends the OptimizeGlobalAddressOfMal...
Shimin Cui via All-commits
all-commits at lists.llvm.org
Tue Jul 20 09:28:12 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0b043bb39bf0e24827a1a4042a661cfb9899e0b0
https://github.com/llvm/llvm-project/commit/0b043bb39bf0e24827a1a4042a661cfb9899e0b0
Author: Shimin Cui <scui at ca.ibm.com>
Date: 2021-07-20 (Tue, 20 Jul 2021)
Changed paths:
M llvm/lib/Transforms/IPO/GlobalOpt.cpp
A llvm/test/Transforms/GlobalOpt/malloc-promote-4.ll
M llvm/test/Transforms/GlobalOpt/null-check-is-use-pr35760.ll
A llvm/test/Transforms/GlobalOpt/null-check-not-use-pr35760.ll
Log Message:
-----------
This patch extends the OptimizeGlobalAddressOfMalloc to handle the null check of global pointer variables. It is disabled with https://reviews.llvm.org/rGb7cd291c1542aee12c9e9fde6c411314a163a8ea. This PR is to reenable it while fixing the original problem reported. The fix is to set the store value correctly when creating store for the new created global init bool symbol.
Reviewed By: efriedma
Differential Revision: https://reviews.llvm.org/D102711
More information about the All-commits
mailing list