Commit 1fbacf7b authored by Georg Neis's avatar Georg Neis Committed by V8 LUCI CQ

[compiler] Remove redundant MakeRef call

Bug: v8:7790
Change-Id: Ibf6e842c2bec780a9a52643494def8efbab92466
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3185920
Auto-Submit: Georg Neis <neis@chromium.org>
Commit-Queue: Jakob Gruber <jgruber@chromium.org>
Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/main@{#77102}
parent 68371328
...@@ -4451,8 +4451,7 @@ Reduction JSCallReducer::ReduceJSCall(Node* node) { ...@@ -4451,8 +4451,7 @@ Reduction JSCallReducer::ReduceJSCall(Node* node) {
// Try to further reduce the JSCall {node}. // Try to further reduce the JSCall {node}.
return Changed(node).FollowedBy(ReduceJSCall(node)); return Changed(node).FollowedBy(ReduceJSCall(node));
} else if (feedback_target.has_value() && feedback_target->IsFeedbackCell()) { } else if (feedback_target.has_value() && feedback_target->IsFeedbackCell()) {
FeedbackCellRef feedback_cell = FeedbackCellRef feedback_cell = feedback_target.value().AsFeedbackCell();
MakeRef(broker(), feedback_target.value().AsFeedbackCell().object());
// TODO(neis): This check seems unnecessary. // TODO(neis): This check seems unnecessary.
if (feedback_cell.feedback_vector().has_value()) { if (feedback_cell.feedback_vector().has_value()) {
// Check that {target} is a closure with given {feedback_cell}, // Check that {target} is a closure with given {feedback_cell},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment