[llvm] [WIP][SPARC] Allow overaligned `alloca`s (PR #107223)
Sergei Barannikov via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 4 05:10:53 PDT 2024
================
@@ -2764,20 +2764,27 @@ static SDValue LowerDYNAMIC_STACKALLOC(SDValue Op, SelectionDAG &DAG,
const SparcSubtarget *Subtarget) {
SDValue Chain = Op.getOperand(0); // Legalize the chain.
SDValue Size = Op.getOperand(1); // Legalize the size.
- MaybeAlign Alignment =
- cast<ConstantSDNode>(Op.getOperand(2))->getMaybeAlignValue();
+ SDValue Alignment = Op.getOperand(2); // Legalize the alignment.
----------------
s-barannikov wrote:
Drop the comments? The assignments don't legalize anything.
https://github.com/llvm/llvm-project/pull/107223
More information about the llvm-commits
mailing list