llvm-6502/lib
Bill Wendling c143bcf9ac If the LHS of the FCMP is coming from a UIToFP instruction, then we don't want
to generate signed ICMP instructions to replace the FCMP. This would violate
the following:

define i1 @test1(i32 %val) {
  %1 = uitofp i32 %val to double
  %2 = fcmp ole double %1, 0.000000e+00
  ret i1 %2
}

would be transformed into:

define i1 @test1(i32 %val) {
  %1 = icmp slt i33 %val, 1
  ret i1 %1
}

which is obviously wrong. This patch modifes InstCombiner::FoldFCmp_IntToFP_Cst
to handle when the LHS comes from UIToFP.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58929 91177308-0d34-0410-b5e6-96231b3b80d8
2008-11-09 04:26:50 +00:00
..
Analysis Don't crash analyzing certain quadratics (addrec of {X,+,Y,+,1}). 2008-11-03 02:43:49 +00:00
Archive Initial support for the CMake build system. 2008-09-22 01:08:49 +00:00
AsmParser regenerate 2008-11-04 14:43:20 +00:00
Bitcode Make sure to set stdout to binary when writing bitcode files via 2008-10-23 19:37:34 +00:00
CodeGen Temporary revert my last commit: it seems it's triggering some subtle bug in backend 2008-11-08 23:05:05 +00:00
Debugger Initial support for the CMake build system. 2008-09-22 01:08:49 +00:00
ExecutionEngine Remove a InvalidateInstructionCache call with incorrect size. 2008-11-08 08:15:39 +00:00
Linker Make comments and code for QuietWarnings and QuietErrors 2008-10-25 17:57:20 +00:00
Support Overload AddInteger on int/long/long long instead of on int/int64_t, 2008-11-03 19:40:18 +00:00
System plug leakage of mutex data. pthread_mutex_destroy() doesnt free our malloc'ed memory. 2008-11-06 16:21:49 +00:00
Target Typo fix 2008-11-09 02:54:13 +00:00
Transforms If the LHS of the FCMP is coming from a UIToFP instruction, then we don't want 2008-11-09 04:26:50 +00:00
VMCore Fix a use of an invalid iterator when -debug-pass=Details is used. 2008-11-06 21:57:17 +00:00
Makefile remove attribution from lib Makefiles. 2007-12-29 20:09:26 +00:00