llvm.org GIT mirror llvm / af16385
[MachineOutliner] Only outline candidates of length >= 2 Since we don't factor in instruction lengths into outlining calculations right now, it's never the case that a candidate could have length < 2. Thus, we should quit early when we see such candidates. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310894 91177308-0d34-0410-b5e6-96231b3b80d8 Jessica Paquette 2 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
843843
844844 // Figure out if this candidate is beneficial.
845845 size_t StringLen = Leaf->ConcatLen - Leaf->size();
846
847 // Too short to be beneficial; skip it.
848 // FIXME: This isn't necessarily true for, say, X86. If we factor in
849 // instruction lengths we need more information than this.
850 if (StringLen < 2)
851 continue;
852
846853 size_t CallOverhead = 0;
847854 size_t SequenceOverhead = StringLen;
848855