You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ opt -loop-rotate -indvars c.bc | llc -f -o x2.s
nlewycky@ducttape:/local$ gcc x.s x2.s -o x -lm
nlewycky@ducttape:/local$ ./x
Hilbert Slice. Test case 1 of size 120.
One-Norm(A) ---------- 1.833333e+00.
Segmentation fault
Without the 'opt' phase, the program runs correctly. This is a bugpoint reduction of sgefa.
I should mention that opt -loop-rotate | opt -indvars appears to produce different output (it's hard to spot amongst the variable renamings, but it looks like a GEP is missing or in a different spot).
The text was updated successfully, but these errors were encountered:
When all the large const offsets masked with the same value from bit-12 to bit-23.
Fold
add x8, x0, llvm#2031, lsl llvm#12
add x8, x8, llvm#960
ldr x9, [x8, x8]
ldr x8, [x8, llvm#2056]
into
add x8, x0, llvm#2031, lsl llvm#12
ldr x9, [x8, llvm#960]
ldr x8, [x8, llvm#3016]
Extended Description
I have a miscompile:
$ opt -loop-rotate -indvars c.bc | llc -f -o x2.s
nlewycky@ducttape:
/local$ gcc x.s x2.s -o x -lm/local$ ./xnlewycky@ducttape:
Hilbert Slice. Test case 1 of size 120.
One-Norm(A) ---------- 1.833333e+00.
Segmentation fault
Without the 'opt' phase, the program runs correctly. This is a bugpoint reduction of sgefa.
I should mention that opt -loop-rotate | opt -indvars appears to produce different output (it's hard to spot amongst the variable renamings, but it looks like a GEP is missing or in a different spot).
The text was updated successfully, but these errors were encountered: