[PATCH] D46057: [mips] Fix how compiler fuse instructions to fmadd/fmsub
Aleksandar Beserminji via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 25 06:42:29 PDT 2018
abeserminji created this revision.
abeserminji added a reviewer: sdardis.
Herald added a subscriber: arichardson.
When no -fp-contract option is provided (default behavior), compiler is fusing fmul and fadd/fsub into fmadd/fmsub.
GCC does not do that, so this patch makes LLVM behave like GCC.
Also, this patch makes LLVM take care of -fp-contract=fast option which enables fusing.
Repository:
rL LLVM
https://reviews.llvm.org/D46057
Files:
lib/Target/Mips/MipsISelLowering.cpp
lib/Target/Mips/MipsISelLowering.h
lib/Target/Mips/MipsInstrInfo.td
lib/Target/Mips/MipsMSAInstrInfo.td
lib/Target/Mips/MipsSEISelLowering.cpp
test/CodeGen/Mips/fp-contract.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46057.143904.patch
Type: text/x-patch
Size: 7576 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180425/5194938d/attachment.bin>
More information about the llvm-commits
mailing list