mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 22:32:47 +00:00
BBVectorize: Add a additional comment about the cost computation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173580 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7a8aba9064
commit
ec5c3c2bd3
@ -994,6 +994,12 @@ namespace {
|
||||
unsigned JCost = getInstrCost(J->getOpcode(), JT1, JT2);
|
||||
Type *VT1 = getVecTypeForPair(IT1, JT1),
|
||||
*VT2 = getVecTypeForPair(IT2, JT2);
|
||||
|
||||
// Note that this procedure is incorrect for insert and extract element
|
||||
// instructions (because combining these often results in a shuffle),
|
||||
// but this cost is ignored (because insert and extract element
|
||||
// instructions are assigned a zero depth factor and are not really
|
||||
// fused in general).
|
||||
unsigned VCost = getInstrCost(I->getOpcode(), VT1, VT2);
|
||||
|
||||
if (VCost > ICost + JCost)
|
||||
|
Loading…
Reference in New Issue
Block a user