-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[VPlan][LV] Fix invalid truncation in VPScalarIVStepsRecipe #137832
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 |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| ; RUN: opt -passes=loop-vectorize -S < %s > /dev/null | ||
| ; REQUIRES: asserts | ||
|
||
|
|
||
| target datalayout = "E-m:a-p:32:32-Fi32-i64:64-n32" | ||
| target triple = "powerpc-ibm-aix7.2.0.0" | ||
|
|
||
| define void @__power_mod_NMOD_power_init(ptr %a, ptr %b, i32 %n) { | ||
| entry: | ||
| br label %loop_entry | ||
|
|
||
| loop_exit: ; preds = %loop_header | ||
| br label %loop_entry | ||
|
|
||
| loop_entry: ; preds = %loop_exit, %entry | ||
| %sum.0 = phi double [ 0.000000e+00, %entry ], [ %sum.1, %loop_exit ] | ||
| %x = load double, ptr %a, align 8 | ||
| br label %loop_header | ||
|
||
|
|
||
| loop_header: ; preds = %loop_body, %loop_entry | ||
| %sum.1 = phi double [ %sum.0, %loop_entry ], [ %sum.next, %loop_body ] | ||
| %i = phi i32 [ 0, %loop_entry ], [ %i.next, %loop_body ] | ||
| %cond = icmp sgt i32 %i, %n | ||
| br i1 %cond, label %loop_exit, label %loop_body | ||
|
|
||
| loop_body: ; preds = %loop_header | ||
| store double %sum.1, ptr %b, align 8 | ||
| %sum.next = fadd reassoc double %sum.1, %x | ||
| %i.next = add i32 %i, 1 | ||
| br label %loop_header | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.