]> granicus.if.org Git - llvm/commit
Merging r325739:
authorHans Wennborg <hans@hanshq.net>
Thu, 22 Feb 2018 11:29:35 +0000 (11:29 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 22 Feb 2018 11:29:35 +0000 (11:29 +0000)
commita1f4098730e17f8a905fe823395f124ecf889d01
tree16720004690d6cee8df79534fbaffd37ef582603
parente64cc9309f5236bc0460b05843711d231707d188
Merging r325739:
------------------------------------------------------------------------
r325739 | nemanjai | 2018-02-22 04:02:41 +0100 (Thu, 22 Feb 2018) | 9 lines

[PowerPC] Do not produce invalid CTR loop with an FRem

An FRem instruction inside a loop should prevent the loop from being converted
into a CTR loop since this is not an operation that is legal on any PPC
subtarget. This will always be a call to a library function which means the
loop will be invalid if this instruction is in the body.

Fixes PR36292.

------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_60@325767 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCCTRLoops.cpp
test/CodeGen/PowerPC/pr36292.ll [new file with mode: 0644]