An alloca which can be sunk into the extraction region may have more
than one bitcast use. Move these uses along with the alloca to prevent
use-before-def.
Testing: check-llvm, stage2 build of clang
Fixes llvm.org/PR42451.
Paths
| Differential D64463
[CodeExtractor] Fix sinking of allocas with multiple bitcast uses (PR42451) ClosedPublic Authored by vsk on Jul 9 2019, 6:21 PM.
Details Summary An alloca which can be sunk into the extraction region may have more Testing: check-llvm, stage2 build of clang Fixes llvm.org/PR42451.
Diff Detail Event TimelineComment Actions Is it possible to split the patch into a NFC refactoring and one functional change?
This revision is now accepted and ready to land.Jul 10 2019, 8:42 AM Closed by commit rL365660: [CodeExtractor] Fix sinking of allocas with multiple bitcast uses (PR42451) (authored by vedantk). · Explain WhyJul 10 2019, 9:32 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 208858 llvm/include/llvm/Transforms/Utils/CodeExtractor.h
llvm/lib/Transforms/Utils/CodeExtractor.cpp
llvm/test/Transforms/CodeExtractor/live_shrink_multiple.ll
llvm/test/Transforms/HotColdSplit/sink-multiple-bitcasts-of-allocas-pr42451.ll
|
Add a comment for the function.