]> granicus.if.org Git - llvm/commit
Merging r326393:
authorHans Wennborg <hans@hanshq.net>
Thu, 1 Mar 2018 09:05:01 +0000 (09:05 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 1 Mar 2018 09:05:01 +0000 (09:05 +0000)
commit1a427644e6296ee1dcae3a9d76fdc244615c3716
tree5d2e1c7e968c2d8898608d967d730d4b077ac7d2
parent138d74f09c10f1f47b37659de24cde3939f95873
Merging r326393:
------------------------------------------------------------------------
r326393 | ctopper | 2018-03-01 01:08:38 +0100 (Thu, 01 Mar 2018) | 5 lines

[X86] Make sure we don't combine (fneg (fma X, Y, Z)) to a target specific node when there are no FMA instructions.

This would cause a 'cannot select' error at isel when we should have emitted a lib call and an xor.

Fixes PR36553.
------------------------------------------------------------------------

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