[PATCH] D47529: [BranchFolding] Fix live-in's when hoisting code
Karl-Johan Karlsson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 30 04:01:01 PDT 2018
Ka-Ka created this revision.
When the branch folder hoist code into a predecessor it adjust live-in's
in the blocks it hoist code from. However it fail to handle hoisted code
that contain a defed register that originally is live-in in the block
through a super register.
This is fixed by replacing the live-in handling code with calls to
utility functions in LivePhysRegs.
Repository:
rL LLVM
https://reviews.llvm.org/D47529
Files:
include/llvm/CodeGen/LivePhysRegs.h
lib/CodeGen/BranchFolding.cpp
test/CodeGen/SystemZ/branch-folder-hoist-livein.mir
test/CodeGen/X86/tail-call-conditional.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47529.149082.patch
Type: text/x-patch
Size: 6083 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180530/a8394280/attachment.bin>
More information about the llvm-commits
mailing list