aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugVariables.cpp
diff options
context:
space:
mode:
authorAmy Kwan <amy.kwan1@ibm.com>2021-11-25 11:17:37 -0600
committerAmy Kwan <amy.kwan1@ibm.com>2021-11-25 12:35:26 -0600
commit150681f2f3220ee6e00377cdcc0c97ee0abc63ba (patch)
tree83bad778268737c140b9a9d3acbc44726d72c792 /llvm/lib/CodeGen/LiveDebugVariables.cpp
parent34303d3db78fc62c74ff47557d07e4dac5c8c2d4 (diff)
downloadllvm-150681f2f3220ee6e00377cdcc0c97ee0abc63ba.zip
llvm-150681f2f3220ee6e00377cdcc0c97ee0abc63ba.tar.gz
llvm-150681f2f3220ee6e00377cdcc0c97ee0abc63ba.tar.bz2
[PowerPC] Prevent the optimizer from producing wide vector types in IR.
This patch prevents the optimizer from producing wide vectors in the IR, specifically the MMA types (v256i1, v512i1). The idea is that on Power, we only want to be producing these types only if the vector_pair and vector_quad types are used specifically. To prevent the optimizer from producing these types in the IR, vectorCostAdjustmentFactor() is updated to return an instruction cost factor or an invalid instruction cost if the current type is that of an MMA type. An invalid instruction cost returned by this function signifies to other cost computing functions to return the maximum instruction cost to inform the optimizer that producing these types within the IR is expensive, and should not be produced in the first place. This issue was first seen in the test case included within this patch. Differential Revision: https://reviews.llvm.org/D113900
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions