[AArch64] Support for FP FMA when -ffp-contract=fast
authorEvandro Menezes <e.menezes@samsung.com>
Thu, 15 Sep 2016 19:55:23 +0000 (19:55 +0000)
committerEvandro Menezes <e.menezes@samsung.com>
Thu, 15 Sep 2016 19:55:23 +0000 (19:55 +0000)
commit19b2aed3080eb88f982dfe97a356afa7e1467d9b
treeb8336c4bdc2a0d1d99b6e7d8c4edb05b36ba315a
parent252f9bf7d387b8108adc92231ad7dd4632e6020d
[AArch64] Support for FP FMA when -ffp-contract=fast

Currently, the machine combiner can proceed matching when -ffast-math is on.
It should also match when only -ffp-contract=fast is specified as was the
case before when DAGCombiner was doing the job.

Patch by: Abderrazek Zaafrani <a.zaafrani@samsung.com>.

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

llvm-svn: 281649
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
llvm/test/CodeGen/AArch64/arm64-fma-combine-with-fpfusion.ll [new file with mode: 0644]