[PATCH] D102673: [ConstantFolding] Fold constrained arithmetic intrinsics

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 4 02:02:33 PDT 2021


foad added inline comments.


================
Comment at: llvm/lib/Analysis/ConstantFolding.cpp:2449
+          // something definite.
+          if (*ORM == RoundingMode::Dynamic)
+            ORM = RoundingMode::NearestTiesToEven;
----------------
You don't need the "if", just do it unconditionally?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D102673



More information about the llvm-commits mailing list