-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
LLVM 3.9 miss-compiles inlined broadcast for Array & SubArray #19792
Comments
bisected to #19746 - @andreasnoack that assertion failure was real and should not have been merged |
Interestingly this doesn't fail with LLVM 3.7.1 (on Ubuntu 14.04 anyway). Julia codegen bug or upstream llvm bug? If you build with
cc @vchuravy |
There's also what seems to be a test-system bug here that |
I can reproduce this with |
The MachineInstuction the assertion is triggered from is:
and if I remove Lines 151 to 159 in 26c8d85
I further reduced this to:
|
|
I will be travelling for the first week of January, so I won't have too much time to look into this (sorry about that) @vtjnash, @JeffBezanson If one of you has time to see if we can work around this from our codegen side, that would be great. I was more looking at this from the LLVM side, but I didn't find anything obvious. |
This seems buggy enough that we should at least consider dropping back to 3.7 if it can't be solved soon. |
This doesn't segfault on LLVM-svn c828f5b04a33480c4d8c86863a1439df265f2b2b. |
(reverse-)bisect on llvm to figure out what patch to carry? |
I'll try that |
A familiar name showed up (and bad means good)
it can be cherry-picked cleanly from |
Very nice! Let's add that to our list then. |
We should also pick up 83dc06334ff95ad18a951d0bb540290510f2f81a and whatever the git sha corresponding to https://reviews.llvm.org/rL290260 is. |
working on a branch (will also need to rebuild mac and windows binaries, if you've got any other changes in mind now's a good time) |
I'm about to reapply a fixed version of https://reviews.llvm.org/D21731. We'll probably want to replace our existing patch by that once that's done. |
Could you also take a look at #19803 ? That only seems to be happening on 32 bit x86 and with LLVM assertions enabled. If it helps make reproducing faster I can put up a docker image that has deps prebuilt for it. |
Yes, that would be helpful. |
bf92182 if it sticks without getting reverted upstream edit: needs some conflicts resolved to apply against 3.9.1, I'm inclined to leave the patch as it is for now if I don't hear otherwise? |
Add 3 LLVM patches to fix issue #19792
miscompilation of broadcast
I am using llvm 4.0, to build Halide project. Halide is with tag release_2017_05_03. bin/gaussian5x5_generator -o ./bin/arm-64-android -e o,h -f gaussian5x5_hvx128 target=arm-64-android-hvx_128 |
Report that to Halide please, it's not a Julia issue. |
On
The
linalg/qr
tests fail. The failure reduces toe.g.
Best!
The text was updated successfully, but these errors were encountered: