llvm/lib
Chris Lattner a540623ab1 Fold FP comparisons where one operand is converted from an integer
type and the other operand is a constant into integer comparisons.
This happens surprisingly frequently (e.g. 10 times in 471.omnetpp),
which are things like this:

	%tmp8283 = sitofp i32 %tmp82 to double	
	%tmp1013 = fcmp ult double %tmp8283, 0.0

Clearly comparing tmp82 against i32 0 is cheaper here.

this also triggers 8 times in gobmk, including this one:

	%tmp375376 = sitofp i32 %tmp375 to double
	%tmp377 = fcmp ogt double %tmp375376, 8.150000e+01

which is comparing an integer against 81.5 :).



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51268 91177308-0d34-0410-b5e6-96231b3b80d8
2008-05-19 20:18:56 +00:00
..
Analysis API change for {BinaryOperator|CmpInst|CastInst}::create*() --> Create. Legacy interfaces will be in place for some time. (Merge from use-diet branch.) 2008-05-16 19:29:10 +00:00
Archive Clean up the use of static and anonymous namespaces. This turned up 2008-05-13 00:00:25 +00:00
AsmParser Reverting accidental commit of generated files. 2008-05-19 05:57:12 +00:00
Bitcode API change for {BinaryOperator|CmpInst|CastInst}::create*() --> Create. Legacy interfaces will be in place for some time. (Merge from use-diet branch.) 2008-05-16 19:29:10 +00:00
CodeGen API change for {BinaryOperator|CmpInst|CastInst}::create*() --> Create. Legacy interfaces will be in place for some time. (Merge from use-diet branch.) 2008-05-16 19:29:10 +00:00
Debugger
ExecutionEngine Fix a backwards check in the JIT symbol table code 2008-05-18 19:09:10 +00:00
Linker Fix a bunch of 80col violations that arose from the Create API change. Tweak makefile targets to find these better. 2008-05-15 10:04:30 +00:00
Support Don't assume underlying APInt type is limited 2008-05-14 22:53:25 +00:00
System Make PreVerifyID, IntSigsEnd, and KillSigsEnd const. 2008-05-14 00:42:30 +00:00
Target trip count computation deficiency 2008-05-17 15:37:38 +00:00
Transforms Fold FP comparisons where one operand is converted from an integer 2008-05-19 20:18:56 +00:00
VMCore Remove a duplicative binding. Patch by Mahadevan R. 2008-05-19 05:47:10 +00:00
Makefile