[llvm] 47107dc - [Statepoint] Fix StatepointLoweringInfo::GCTransitionArgs initialization
Denis Antrushin via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 31 01:49:01 PDT 2020
Author: Denis Antrushin
Date: 2020-03-31T11:45:06+03:00
New Revision: 47107dc3bda1f8c27c70c84f30aa0cdd41786e0d
URL: https://github.com/llvm/llvm-project/commit/47107dc3bda1f8c27c70c84f30aa0cdd41786e0d
DIFF: https://github.com/llvm/llvm-project/commit/47107dc3bda1f8c27c70c84f30aa0cdd41786e0d.diff
LOG: [Statepoint] Fix StatepointLoweringInfo::GCTransitionArgs initialization
Summary:
In method SelectionDAGBuilder::LowerStatepoint, array SI.GCTransitionArgs
is initialized from wrong part of ImmutableStatepoint class.
We copy gc args instead of transitions args.
Reviewers: reames, skatkov
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D77075
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
index 15c66586ac02..8904ab345da7 100644
--- a/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
@@ -848,8 +848,8 @@ SelectionDAGBuilder::LowerStatepoint(ImmutableStatepoint ISP,
SI.GCArgs = ArrayRef<const Use>(ISP.gc_args_begin(), ISP.gc_args_end());
SI.StatepointInstr = ISP.getInstruction();
- SI.GCTransitionArgs =
- ArrayRef<const Use>(ISP.gc_args_begin(), ISP.gc_args_end());
+ SI.GCTransitionArgs = ArrayRef<const Use>(ISP.gc_transition_args_begin(),
+ ISP.gc_transition_args_end());
SI.ID = ISP.getID();
SI.DeoptState = ArrayRef<const Use>(ISP.deopt_begin(), ISP.deopt_end());
SI.StatepointFlags = ISP.getFlags();
More information about the llvm-commits
mailing list