aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunctionPass.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2015-08-16 20:18:19 +0000
committerSanjay Patel <spatel@rotateright.com>2015-08-16 20:18:19 +0000
commit57fd1dc5db880044c6899eae5b840caac1fe790e (patch)
tree27175c4bad090bcdca1ecb8dbbb1c1315a624ed0 /llvm/lib/CodeGen/MachineFunctionPass.cpp
parent3278b7cd7c80231b2e93edadea922b09051264fa (diff)
downloadllvm-57fd1dc5db880044c6899eae5b840caac1fe790e.zip
llvm-57fd1dc5db880044c6899eae5b840caac1fe790e.tar.gz
llvm-57fd1dc5db880044c6899eae5b840caac1fe790e.tar.bz2
transform fmin/fmax calls when possible (PR24314)
If we can ignore NaNs, fmin/fmax libcalls can become compare and select (this is what we turn std::min / std::max into). This IR should then be optimized in the backend to whatever is best for any given target. Eg, x86 can use minss/maxss instructions. This should solve PR24314: https://llvm.org/bugs/show_bug.cgi?id=24314 Differential Revision: http://reviews.llvm.org/D11866 llvm-svn: 245187
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunctionPass.cpp')
0 files changed, 0 insertions, 0 deletions