1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-26 14:33:02 +02:00
llvm-mirror/unittests/Analysis
James Molloy ecd6525b24 Add support for floating-point minnum and maxnum
The select pattern recognition in ValueTracking (as used by InstCombine
and SelectionDAGBuilder) only knew about integer patterns. This teaches
it about minimum and maximum operations.

matchSelectPattern() has been extended to return a struct containing the
existing Flavor and a new enum defining the pattern's behavior when
given one NaN operand.

C minnum() is defined to return the non-NaN operand in this case, but
the idiomatic C "a < b ? a : b" would return the NaN operand.

ARM and AArch64 at least have different instructions for these different cases.

llvm-svn: 244580
2015-08-11 09:12:57 +00:00
..
AliasAnalysisTest.cpp [PM/AA] Hoist the interface for BasicAA into a header file. 2015-08-06 07:33:15 +00:00
CallGraphTest.cpp CallGraphTest.cpp: Remove invalid tests. ++S might step over F if S == F. 2014-11-18 12:23:19 +00:00
CFGTest.cpp Use 'override/final' instead of 'virtual' for overridden methods 2015-04-11 02:11:45 +00:00
CMakeLists.txt Add support for floating-point minnum and maxnum 2015-08-11 09:12:57 +00:00
LazyCallGraphTest.cpp Silence gcc's -Wcomment 2014-10-22 02:16:06 +00:00
Makefile Fix GraphTraits for "const CallGraphNode *" and "const CallGraph *" 2014-11-17 17:51:45 +00:00
MixedTBAATest.cpp [PM] Remove the old 'PassManager.h' header file at the top level of 2015-02-13 10:01:29 +00:00
ScalarEvolutionTest.cpp Use 'override/final' instead of 'virtual' for overridden methods 2015-04-11 02:11:45 +00:00
ValueTrackingTest.cpp Add support for floating-point minnum and maxnum 2015-08-11 09:12:57 +00:00