[PATCH] D62521: [IRBuilder] Add CreateFNegFMF(...) to the IRBuilder

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 9 08:46:16 PDT 2019


spatel accepted this revision.
spatel added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: llvm/include/llvm/IR/IRBuilder.h:1381-1382
+     return Insert(Folder.CreateFNeg(VC), Name);
+   return Insert(setFPAttrs(BinaryOperator::CreateFNeg(V), nullptr,
+                            FMFSource->getFastMathFlags()),
+                 Name);
----------------
Add a TODO comment about using UnaryOperator here in the future, so we don't forget?


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62521/new/

https://reviews.llvm.org/D62521





More information about the llvm-commits mailing list