[PATCH] D64463: [CodeExtractor] Fix sinking of allocas with multiple bitcast uses (PR42451)
Vedant Kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 9 18:21:37 PDT 2019
vsk created this revision.
vsk added reviewers: davidxl, kachkov98.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
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 llc (stage2 clang build in progress)
Fixes llvm.org/PR42451.
https://reviews.llvm.org/D64463
Files:
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64463.208858.patch
Type: text/x-patch
Size: 13599 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190710/d3c7f5b4/attachment.bin>
More information about the llvm-commits
mailing list