[PATCH] D41634: Branch relaxation - non invertible condition

Elena Demikhovsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 29 13:40:16 PST 2017


delena created this revision.
delena added reviewers: arsenm, MatzeB, t.p.northover.
Herald added a subscriber: wdng.

The algorithm of the branch relaxation is not fully correct and generates a wrong code when condition can't be inverted.
I changed the "fixupConditionalBranch()" function - a new BB (trampoline) is created to keen the original branch condition.

Apparently, I can't attach a test case, I'm working out-of-tree.


Repository:
  rL LLVM

https://reviews.llvm.org/D41634

Files:
  ../lib/CodeGen/BranchRelaxation.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41634.128346.patch
Type: text/x-patch
Size: 6608 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171229/f155048f/attachment.bin>


More information about the llvm-commits mailing list