[PATCH] D53650: [FPEnv] Last BinaryOperator::isFNeg(...) to m_FNeg(...) changes

Cameron McInally via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 25 08:08:14 PDT 2018


cameron.mcinally marked an inline comment as done.
cameron.mcinally added inline comments.


================
Comment at: lib/CodeGen/SelectionDAG/FastISel.cpp:1697
 bool FastISel::selectFNeg(const User *I) {
   unsigned OpReg = getRegForValue(BinaryOperator::getFNegArgument(I));
   if (!OpReg)
----------------
spatel wrote:
> Use match() here, so we can get rid of getFNegArgument() too?
This would have been a weird use of match(...), i.e. ignoring the return value, so I refactored the code to pull the match(...) into selectFNeg(...). This is also a little weird, but seems ok. Thoughts or alternatives?


Repository:
  rL LLVM

https://reviews.llvm.org/D53650





More information about the llvm-commits mailing list