[PATCH] D82438: [SimplifyCFG] Cost required selects
Sam Parker via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 24 01:02:14 PDT 2020
samparker created this revision.
samparker added reviewers: spatel, reames, RKSimon, lebedev.ri.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
Before we speculatively execute a basic block, query the cost of inserting the necessary select instructions against the phi folding threshold. For non-trivial insertions, a more accurate decision can probably be made during machine if-conversion.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D82438
Files:
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
llvm/test/Transforms/SimplifyCFG/ARM/select-costs.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82438.272926.patch
Type: text/x-patch
Size: 5604 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200624/6c22896c/attachment-0001.bin>
More information about the llvm-commits
mailing list