[PATCH] D31788: [ConstantFolding] Add folding for various math '__<func>_finite' routines generated from -ffast-math

Andy Kaylor via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 9 16:40:08 PDT 2017


andrew.w.kaylor added inline comments.


================
Comment at: test/Transforms/ConstProp/calls-math-finite.ll:35
+
+; CHECK-NOT: call
+; CHECK: ret
----------------
chrischr wrote:
> andrew.w.kaylor wrote:
> > Won't this test fail on targets where these functions were marked as unavailable?
> Currently the test case is written without specifying a target triple, so the default OS value (UnknownOS) is in effect during the initialization of the TLI preventing the  TLI.setUnavailable calls from executing. 
> 
I thought these tests would pick up the triple from the host if nothing was specified.  Have you run this test on Windows?


https://reviews.llvm.org/D31788





More information about the llvm-commits mailing list