diff options
author | Benjamin Maxwell <benjamin.maxwell@arm.com> | 2025-10-02 14:43:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-02 14:43:07 +0100 |
commit | 9f5abd38dd1782a6fd3b8ed1c2f76aa62dc850b1 (patch) | |
tree | 0320a16d7f5ac8b0cd886f7e930e2c81961f45fb /llvm/lib/CodeGen/StackFrameLayoutAnalysisPass.cpp | |
parent | c4e1bca407f4cca7644937c117890fad157fec4b (diff) | |
download | llvm-9f5abd38dd1782a6fd3b8ed1c2f76aa62dc850b1.zip llvm-9f5abd38dd1782a6fd3b8ed1c2f76aa62dc850b1.tar.gz llvm-9f5abd38dd1782a6fd3b8ed1c2f76aa62dc850b1.tar.bz2 |
[Codegen] Add a separate stack ID for scalable predicates (#142390)
This splits out "ScalablePredicateVector" from the "ScalableVector"
StackID this is primarily to allow easy differentiation between vectors
and predicates (without inspecting instructions).
This new stack ID is not used in many places yet, but will be used in a
later patch to mark stack slots that are known to contain predicates.
Co-authored-by: Kerry McLaughlin <kerry.mclaughlin@arm.com>
Diffstat (limited to 'llvm/lib/CodeGen/StackFrameLayoutAnalysisPass.cpp')
-rw-r--r-- | llvm/lib/CodeGen/StackFrameLayoutAnalysisPass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StackFrameLayoutAnalysisPass.cpp b/llvm/lib/CodeGen/StackFrameLayoutAnalysisPass.cpp index 096a33c..ec75dc3 100644 --- a/llvm/lib/CodeGen/StackFrameLayoutAnalysisPass.cpp +++ b/llvm/lib/CodeGen/StackFrameLayoutAnalysisPass.cpp @@ -72,7 +72,7 @@ struct StackFrameLayoutAnalysis { : Slot(Idx), Size(MFI.getObjectSize(Idx)), Align(MFI.getObjectAlign(Idx).value()), Offset(Offset), SlotTy(Invalid), Scalable(false) { - Scalable = MFI.getStackID(Idx) == TargetStackID::ScalableVector; + Scalable = MFI.isScalableStackID(Idx); if (MFI.isSpillSlotObjectIndex(Idx)) SlotTy = SlotType::Spill; else if (MFI.isFixedObjectIndex(Idx)) |