Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

Backport: "[PowerPC] multiply-with-overflow might use the CTR register" #72

Merged
merged 1 commit into from
Apr 23, 2017

Conversation

TimNN
Copy link

@TimNN TimNN commented Apr 23, 2017

Otherwise 128 integer multiplication could produce LLVM Assertions for PowerPC targets.

(Note: While doing the final rebase / cleanup of the LLVM 4.0 upgrade I decided that it would probably be nice to have a PR # associated with each rust modification for future reference / discussion, thus this PR.)

Check the legality of ISD::[US]MULO to see whether
Intrinsic::[us]mul_with_overflow will legalize into a function call (and, thus,
will use the CTR register).  Fixes PR32485.

Patch by Tim Neumann!

Differential Revision: https://reviews.llvm.org/D31790

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299910 91177308-0d34-0410-b5e6-96231b3b80d8
@TimNN TimNN merged commit b09113a into rust-lang:rust-llvm-2017-04-13 Apr 23, 2017
@TimNN TimNN deleted the ppc-backport-4.0 branch April 23, 2017 18:37
arielb1 pushed a commit that referenced this pull request Jun 27, 2017
Backport: "[PowerPC] multiply-with-overflow might use the CTR register"
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant