[PATCH] D60021: InstSimplify: Fold round intrinsics from sitofp

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 31 07:52:21 PDT 2019


spatel added inline comments.


================
Comment at: lib/Analysis/InstructionSimplify.cpp:4710-4711
+  case Intrinsic::rint: {
+    // floor (sitofp x) -> sitofp x
+    if (match(Op0, m_SIToFP(m_Value())))
+      return Op0;
----------------
Matching uitofp is not included here for patch minimalism, or is there some functional difference that needs to be accounted for?


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

https://reviews.llvm.org/D60021





More information about the llvm-commits mailing list