[PATCH] D86347: [SimplifyCFG] Two entry phi select costs

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 21 06:09:16 PDT 2020


samparker created this revision.
samparker added reviewers: lebedev.ri, mkazantsev.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
samparker requested review of this revision.

In same manner as D82438 <https://reviews.llvm.org/D82438>, but in FoldTwoEntryPHINode, estimate the cost needed to insert the required selects and count this against the given budget. This will prevent some high cost conversions which IfConversion can later evaluate with better accuracy.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D86347

Files:
  llvm/lib/Transforms/Utils/SimplifyCFG.cpp
  llvm/test/Transforms/PGOProfile/chr.ll
  llvm/test/Transforms/SimplifyCFG/ARM/phi-eliminate.ll
  llvm/test/Transforms/SimplifyCFG/ARM/speculate-math.ll
  llvm/test/Transforms/SimplifyCFG/PhiEliminate3.ll
  llvm/test/Transforms/SimplifyCFG/speculate-math.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86347.287019.patch
Type: text/x-patch
Size: 53127 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200821/2d2bd934/attachment.bin>


More information about the llvm-commits mailing list