[PATCH] D33848: Do not recombine FMA when that is not needed.
Zvi Rackover via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 4 12:08:02 PDT 2017
zvi added inline comments.
================
Comment at: lib/Target/X86/X86ISelLowering.cpp:34158
+ if (N->getOpcode() == X86ISD::FMADD || N->getOpcode() == ISD::FMA) {
+ if (HasNeg || NewOpcode != N->getOpcode())
----------------
In addition to this change, would it be better to refactor the if-else chain into a switch statement?
https://reviews.llvm.org/D33848
More information about the llvm-commits
mailing list