[all-commits] [llvm/llvm-project] 0636c9: [Attributor] Remove restriction on simplifying fun...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Mon Mar 7 02:55:08 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0636c93d3e43220f6513447cf8158e69cc1953c5
https://github.com/llvm/llvm-project/commit/0636c93d3e43220f6513447cf8158e69cc1953c5
Author: Nikita Popov <npopov at redhat.com>
Date: 2022-03-07 (Mon, 07 Mar 2022)
Changed paths:
M llvm/lib/Transforms/IPO/AttributorAttributes.cpp
M llvm/test/Transforms/Attributor/liveness.ll
M llvm/test/Transforms/Attributor/value-simplify.ll
Log Message:
-----------
[Attributor] Remove restriction on simplifying function pointers
Dropping this restriction seems to work fine (there are no assertion
failures), so it appears that either the updater got smarter or the
problematic cases are restricted elsewhere.
If doing this still causes issues, then the place to address it
would probably be https://github.com/llvm/llvm-project/blob/8f5bdaf481c3f4e6876a5ae0e4d7c6ed2042e6a6/llvm/lib/Transforms/IPO/Attributor.cpp#L1856-L1859,
which already prevents replacement outside the SCC, so I'm not
quite sure what this check is intended to avoid.
Differential Revision: https://reviews.llvm.org/D120987
More information about the All-commits
mailing list