This is the second of a set of patches to followup on the thread in http://lists.llvm.org/pipermail/llvm-dev/2017-March/111323.html. (The first patch is @ https://reviews.llvm.org/D31787)
This extends the constant folding of the math functions to also handle the variants that have been redirected to use the '__<func>_finite' variation that gets called under the -ffast-math flag.