[all-commits] [llvm/llvm-project] a98c04: [Attributor][FIX] Use liveness information of the ...
Johannes Doerfert via All-commits
all-commits at lists.llvm.org
Wed Mar 2 12:48:38 PST 2022
Branch: refs/heads/release/14.x
Home: https://github.com/llvm/llvm-project
Commit: a98c04d58930814f4ff00293ffd14feca57feafa
https://github.com/llvm/llvm-project/commit/a98c04d58930814f4ff00293ffd14feca57feafa
Author: Johannes Doerfert <johannes at jdoerfert.de>
Date: 2022-03-02 (Wed, 02 Mar 2022)
Changed paths:
M llvm/lib/Transforms/IPO/AttributorAttributes.cpp
M llvm/test/Transforms/Attributor/IPConstantProp/return-constant.ll
M llvm/test/Transforms/Attributor/IPConstantProp/return-constants.ll
M llvm/test/Transforms/Attributor/align.ll
M llvm/test/Transforms/Attributor/read_write_returned_arguments_scc.ll
M llvm/test/Transforms/Attributor/value-simplify.ll
Log Message:
-----------
[Attributor][FIX] Use liveness information of the right function
When we use liveness for edges during the `genericValueTraversal` we
need to make sure to use the AAIsDead of the correct function. This
patch adds the proper logic and some simple caching scheme. We also
add an assertion to the `isEdgeDead` call to make sure future misuse
is detected earlier.
Fixes https://github.com/llvm/llvm-project/issues/53872
More information about the All-commits
mailing list