-
Notifications
You must be signed in to change notification settings - Fork 14.5k
[LV] Fix crash when building partial reductions using types that aren't known scale factors #136680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1030,6 +1030,28 @@ for.body: ; preds = %for.body.preheader, | |
br i1 %exitcond.not, label %for.cond.cleanup, label %for.body, !loop !1 | ||
} | ||
|
||
|
||
define void @chained_partial_reduce_not_known_factor(i32 %a, i32 %b, i32 %N) #0 { | ||
NickGuy-Arm marked this conversation as resolved.
Show resolved
Hide resolved
|
||
entry: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should also have some check lines here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added, I also noticed that, since removing the no-op |
||
br label %for.body | ||
|
||
for.cond.cleanup: | ||
NickGuy-Arm marked this conversation as resolved.
Show resolved
Hide resolved
|
||
%B.0.lcssa = phi i40 [ %2, %for.body ] | ||
ret void | ||
NickGuy-Arm marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
for.body: | ||
%B.017 = phi i40 [ 0, %entry ], [ %2, %for.body ] | ||
NickGuy-Arm marked this conversation as resolved.
Show resolved
Hide resolved
|
||
%i.016 = phi i16 [ 0, %entry ], [ %add21, %for.body ] | ||
NickGuy-Arm marked this conversation as resolved.
Show resolved
Hide resolved
|
||
%resize = sext i32 %a to i40 | ||
%resize4 = sext i32 %b to i40 | ||
%0 = or i40 %resize4, %resize | ||
%1 = or i40 %B.017, %0 | ||
%2 = or i40 %1, 0 | ||
NickGuy-Arm marked this conversation as resolved.
Show resolved
Hide resolved
|
||
%add21 = add i16 %i.016, 1 | ||
%cmp = icmp slt i16 %i.016, 1 | ||
br i1 %cmp, label %for.body, label %for.cond.cleanup | ||
} | ||
|
||
attributes #0 = { vscale_range(1,16) } | ||
|
||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.