Commit 4ee489b8 authored by Sigurd Schneider's avatar Sigurd Schneider Committed by Commit Bot

[turbofan] Improve constant handling in representation change

Change-Id: I68ede2cda0441cd9a032318462fe3a085480a1dd
Bug: v8:8344
Reviewed-on: https://chromium-review.googlesource.com/c/1380111Reviewed-by: 's avatarJaroslav Sevcik <jarin@chromium.org>
Commit-Queue: Sigurd Schneider <sigurds@chromium.org>
Cr-Commit-Position: refs/heads/master@{#58354}
parent a5f559c3
...@@ -708,7 +708,9 @@ Node* RepresentationChanger::GetWord32RepresentationFor( ...@@ -708,7 +708,9 @@ Node* RepresentationChanger::GetWord32RepresentationFor(
double const fv = OpParameter<double>(node->op()); double const fv = OpParameter<double>(node->op());
if (use_info.type_check() == TypeCheckKind::kNone || if (use_info.type_check() == TypeCheckKind::kNone ||
((use_info.type_check() == TypeCheckKind::kSignedSmall || ((use_info.type_check() == TypeCheckKind::kSignedSmall ||
use_info.type_check() == TypeCheckKind::kSigned32) && use_info.type_check() == TypeCheckKind::kSigned32 ||
use_info.type_check() == TypeCheckKind::kNumber ||
use_info.type_check() == TypeCheckKind::kNumberOrOddball) &&
IsInt32Double(fv))) { IsInt32Double(fv))) {
return MakeTruncatedInt32Constant(fv); return MakeTruncatedInt32Constant(fv);
} }
......
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