[all-commits] [llvm/llvm-project] 668c5c: [Attributor][FIX] Use liveness information of the ...
Johannes Doerfert via All-commits
all-commits at lists.llvm.org
Wed Feb 16 13:58:58 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 668c5c688be7ab0af37739bbbe2d653be82d5c6f
https://github.com/llvm/llvm-project/commit/668c5c688be7ab0af37739bbbe2d653be82d5c6f
Author: Johannes Doerfert <johannes at jdoerfert.de>
Date: 2022-02-16 (Wed, 16 Feb 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
Commit: 8ad39fbaf23893b3384cafa0f179d35dcf3c672b
https://github.com/llvm/llvm-project/commit/8ad39fbaf23893b3384cafa0f179d35dcf3c672b
Author: Johannes Doerfert <johannes at jdoerfert.de>
Date: 2022-02-16 (Wed, 16 Feb 2022)
Changed paths:
M llvm/lib/Transforms/IPO/AttributorAttributes.cpp
M llvm/test/Transforms/Attributor/heap_to_stack_gpu.ll
M llvm/test/Transforms/OpenMP/spmdization.ll
Log Message:
-----------
[Attributor][FIX] Heap2Stack needs to use the alloca AS
When we move an allocation from the heap to the stack we need to
allocate it in the alloca AS and then cast the result. This also
prevents us from inserting the alloca after the allocation call but
rather right before.
Fixes https://github.com/llvm/llvm-project/issues/53858
Compare: https://github.com/llvm/llvm-project/compare/48a31c8f4290...8ad39fbaf238
More information about the All-commits
mailing list