Skip to content
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

Fix mix-type arithmetic detection in umin/max expansion #28465

Merged
merged 1 commit into from
Aug 6, 2018
Merged

Conversation

Keno
Copy link
Member

@Keno Keno commented Aug 6, 2018

Pointers can have different types. For these, a simple bitcast
suffices rather than going through inttoptr.

Fixes #28464
@Sacha0 This should fix the llvm errors you saw (you'll have to rebuild llvm to apply this)
@vchuravy Since this doesn't show up on CI at the moment, an LLVM BB bump is probably not required before this can go in, but would be good to do on short order.
Hopefully also fixes #28440 (the symptoms match at least).

Pointers can have different types. For these, a simple bitcast
suffices rather than going through inttoptr.

Fixes #28464
@Keno
Copy link
Member Author

Keno commented Aug 6, 2018

I also pushed this as an update to the upstream revision: https://reviews.llvm.org/D50167

@ararslan ararslan added bugfix This change fixes an existing bug external dependencies Involves LLVM, OpenBLAS, or other linked libraries backport pending 0.7 labels Aug 6, 2018
@Keno Keno merged commit 717ff90 into master Aug 6, 2018
@martinholters martinholters deleted the kf/uminfix branch August 6, 2018 14:26
ararslan pushed a commit that referenced this pull request Aug 6, 2018
Pointers can have different types. For these, a simple bitcast
suffices rather than going through inttoptr.

Fixes #28464

(cherry picked from commit 717ff90)
@Sacha0
Copy link
Member

Sacha0 commented Aug 6, 2018

Thanks Keno! :)

@vchuravy
Copy link
Member

@Keno this slipped through my todo-list and is currently not included in BB are there any patches on the horizon that I should wait for or should I push one out with this?

KristofferC pushed a commit that referenced this pull request Feb 11, 2019
Pointers can have different types. For these, a simple bitcast
suffices rather than going through inttoptr.

Fixes #28464
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug external dependencies Involves LLVM, OpenBLAS, or other linked libraries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Illegal inttoptr in LinearAlgebra/bidiag hcat(vec(x1'),vec(x2')) crashes 0.7.0-rc2.0 on Win64
4 participants