[PATCH] D25370: Regenerate removed implicit defs in BranchFolder where necessary

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 7 08:15:27 PDT 2016


kparzysz created this revision.
kparzysz added reviewers: MatzeB, qcolombet.
kparzysz added a subscriber: llvm-commits.
kparzysz set the repository for this revision to rL LLVM.

Branch folder removes implicit defs if they are the only non-branching instructions in a block, and the branches do not use the defined registers. The problem is that in some cases these implicit defs are required for the liveness information to be correct.
After branch optimizations, regenerate those implicit defs that are still necessary.


Repository:
  rL LLVM

https://reviews.llvm.org/D25370

Files:
  lib/CodeGen/BranchFolding.cpp
  lib/CodeGen/BranchFolding.h
  test/CodeGen/Hexagon/branchfolder-keep-impdef.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25370.73934.patch
Type: text/x-patch
Size: 6726 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161007/7d5c6951/attachment.bin>


More information about the llvm-commits mailing list