[all-commits] [llvm/llvm-project] 38399c: [ConstantFold] Make areGlobalsPotentiallyEqual les...
Eli Friedman via All-commits
all-commits at lists.llvm.org
Fri Oct 30 18:52:49 PDT 2020
Branch: refs/heads/release/11.x
Home: https://github.com/llvm/llvm-project
Commit: 38399ced95bca0aede9baaecd75936952758b1b6
https://github.com/llvm/llvm-project/commit/38399ced95bca0aede9baaecd75936952758b1b6
Author: Eli Friedman <efriedma at quicinc.com>
Date: 2020-10-30 (Fri, 30 Oct 2020)
Changed paths:
M llvm/lib/IR/ConstantFold.cpp
M llvm/test/Assembler/ConstantExprNoFold.ll
M llvm/test/Transforms/InstCombine/2010-03-03-ExtElim.ll
Log Message:
-----------
[ConstantFold] Make areGlobalsPotentiallyEqual less aggressive.
In particular, we shouldn't make assumptions about globals which are
unnamed_addr: we can fold them together with other globals.
Also while I'm here, use isInterposable() instead of trying to
explicitly name all the different kinds of weak linkage.
Fixes https://bugs.llvm.org/show_bug.cgi?id=47090
Differential Revision: https://reviews.llvm.org/D87123
(cherry picked from commit d751f86189a7f7ef2a6fe06974a5da3349b02f20)
More information about the All-commits
mailing list