[all-commits] [llvm/llvm-project] 07916c: [ConstantFold] Check for constant global earlier (...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Wed Feb 15 06:17:22 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 07916cea2e7e1e3360c7c0bf1fc1bd3c9551a66a
https://github.com/llvm/llvm-project/commit/07916cea2e7e1e3360c7c0bf1fc1bd3c9551a66a
Author: Nikita Popov <npopov at redhat.com>
Date: 2023-02-15 (Wed, 15 Feb 2023)
Changed paths:
M llvm/lib/Analysis/ConstantFolding.cpp
Log Message:
-----------
[ConstantFold] Check for constant global earlier (NFC)
Check that the underlying object is a constant global with
definitive initializer upfront, so we can skip the more expensive
offset calculation logic if we can't perform the fold anyway.
More information about the All-commits
mailing list