[PATCH] D140467: [X86][Reduce] Preserve fast math flags when change it. NFCI

Jay Foad via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 21 02:30:22 PST 2022


foad added inline comments.


================
Comment at: clang/lib/CodeGen/CGBuiltin.cpp:14740
         CGM.getIntrinsic(Intrinsic::vector_reduce_fadd, Ops[1]->getType());
+    FastMathFlags FMF = Builder.getFastMathFlags();
     Builder.getFastMathFlags().setAllowReassoc();
----------------
We have FastMathFlagGuard for automatically saving and restoring fast math flags.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D140467



More information about the cfe-commits mailing list