[llvm] [SelectionDAG][X86] Add SelectionDAG::getSignedConstant and use it in a few places. (PR #104555)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 16 00:57:10 PDT 2024
================
@@ -4474,7 +4474,7 @@ void SelectionDAGBuilder::visitAlloca(const AllocaInst &I) {
// Mask out the low bits for alignment purposes.
AllocSize = DAG.getNode(ISD::AND, dl, AllocSize.getValueType(), AllocSize,
- DAG.getConstant(~StackAlignMask, dl, IntPtr));
+ DAG.getSignedConstant(~StackAlignMask, dl, IntPtr));
----------------
RKSimon wrote:
Can we use DAG.getZeroExtendInReg here?
https://github.com/llvm/llvm-project/pull/104555
More information about the llvm-commits
mailing list