OSDN Git Service

[PowerPC] multiply-with-overflow might use the CTR register
authorHal Finkel <hfinkel@anl.gov>
Tue, 11 Apr 2017 02:03:17 +0000 (02:03 +0000)
committerHal Finkel <hfinkel@anl.gov>
Tue, 11 Apr 2017 02:03:17 +0000 (02:03 +0000)
commit7ddaf9fa1f1af01b8955fa42a773f988b82199ce
treebac04e174289f21d430e9e981ca894c5bece5fd8
parenta65ac0dca0c54d1b61680e60fa40e26d4c94a9b2
[PowerPC] multiply-with-overflow might use the CTR register

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
lib/Target/PowerPC/PPCCTRLoops.cpp
test/CodeGen/PowerPC/ctrloop-i128.ll [new file with mode: 0644]