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
Archive
AsmParser
Bitcode
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
ExecutionEngine Remove a InvalidateInstructionCache call with incorrect size. 2008-11-08 08:15:39 +00:00
Linker
Support
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