OSDN Git Service

For PR950:
authorReid Spencer <rspencer@reidspencer.com>
Mon, 27 Nov 2006 01:05:10 +0000 (01:05 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 27 Nov 2006 01:05:10 +0000 (01:05 +0000)
commit3da59db637a887474c1b1346c1f3ccf53b6c4663
treeb061e2133efdb9ea9bb334c1b15ceea881bb88f8
parent5fed9b90447a9a95a1f670ccd9c23aea8c937451
For PR950:
The long awaited CAST patch. This introduces 12 new instructions into LLVM
to replace the cast instruction. Corresponding changes throughout LLVM are
provided. This passes llvm-test, llvm/test, and SPEC CPUINT2000 with the
exception of 175.vpr which fails only on a slight floating point output
difference.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31931 91177308-0d34-0410-b5e6-96231b3b80d8
105 files changed:
include/llvm/Analysis/ScalarEvolutionExpander.h
include/llvm/Constants.h
include/llvm/InstrTypes.h
include/llvm/Instruction.def
include/llvm/Instruction.h
include/llvm/Instructions.h
include/llvm/Support/InstVisitor.h
include/llvm/Support/PatternMatch.h
include/llvm/Type.h
lib/Analysis/BasicAliasAnalysis.cpp
lib/Analysis/DataStructure/DataStructure.cpp
lib/Analysis/DataStructure/Local.cpp
lib/Analysis/IPA/Andersens.cpp
lib/Analysis/IPA/GlobalsModRef.cpp
lib/Analysis/ScalarEvolution.cpp
lib/Analysis/ScalarEvolutionExpander.cpp
lib/Analysis/ValueNumbering.cpp
lib/AsmParser/Lexer.cpp.cvs
lib/AsmParser/Lexer.l
lib/AsmParser/Lexer.l.cvs
lib/AsmParser/ParserInternals.h
lib/AsmParser/llvmAsmParser.cpp.cvs
lib/AsmParser/llvmAsmParser.h.cvs
lib/AsmParser/llvmAsmParser.y
lib/AsmParser/llvmAsmParser.y.cvs
lib/Bytecode/Reader/Reader.cpp
lib/Bytecode/Reader/Reader.h
lib/Bytecode/Writer/Writer.cpp
lib/CodeGen/AsmPrinter.cpp
lib/CodeGen/IntrinsicLowering.cpp
lib/CodeGen/MachineDebugInfo.cpp
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
lib/ExecutionEngine/ExecutionEngine.cpp
lib/ExecutionEngine/Interpreter/Execution.cpp
lib/ExecutionEngine/Interpreter/Interpreter.h
lib/Target/CBackend/CBackend.cpp
lib/Target/CBackend/Writer.cpp
lib/Transforms/ExprTypeConvert.cpp
lib/Transforms/IPO/GlobalOpt.cpp
lib/Transforms/IPO/IndMemRemoval.cpp
lib/Transforms/IPO/InlineSimple.cpp
lib/Transforms/IPO/LowerSetJmp.cpp
lib/Transforms/IPO/RaiseAllocations.cpp
lib/Transforms/IPO/SimplifyLibCalls.cpp
lib/Transforms/Instrumentation/ProfilingUtils.cpp
lib/Transforms/Instrumentation/TraceValues.cpp
lib/Transforms/LevelRaise.cpp
lib/Transforms/Scalar/IndVarSimplify.cpp
lib/Transforms/Scalar/InstructionCombining.cpp
lib/Transforms/Scalar/LICM.cpp
lib/Transforms/Scalar/LoopStrengthReduce.cpp
lib/Transforms/Scalar/LowerGC.cpp
lib/Transforms/Scalar/LowerPacked.cpp
lib/Transforms/Scalar/ScalarReplAggregates.cpp
lib/Transforms/Utils/Local.cpp
lib/Transforms/Utils/LowerAllocations.cpp
lib/Transforms/Utils/LowerInvoke.cpp
lib/Transforms/Utils/SimplifyCFG.cpp
lib/VMCore/AsmWriter.cpp
lib/VMCore/AutoUpgrade.cpp
lib/VMCore/ConstantFold.cpp
lib/VMCore/ConstantFold.h
lib/VMCore/ConstantFolding.h
lib/VMCore/Constants.cpp
lib/VMCore/Function.cpp
lib/VMCore/Instruction.cpp
lib/VMCore/Instructions.cpp
lib/VMCore/IntrinsicInst.cpp
lib/VMCore/Type.cpp
lib/VMCore/Verifier.cpp
projects/Stacker/lib/compiler/StackerCompiler.cpp
test/Analysis/LoadVN/casts.ll [new file with mode: 0644]
test/Assembler/2003-11-12-ConstantExprCast.llx
test/CFrontend/cast-to-bool.c [new file with mode: 0644]
test/CodeGen/CBackend/2003-06-23-PromotedExprs.llx
test/CodeGen/X86/trunc-to-bool.ll [new file with mode: 0644]
test/Feature/casttest.ll
test/Transforms/IPConstantProp/return-constant.ll
test/Transforms/Inline/casts.ll [new file with mode: 0644]
test/Transforms/InstCombine/2003-11-03-VarargsCallBug.ll
test/Transforms/InstCombine/2006-10-19-SignedToUnsignedCastAndConst-2.ll
test/Transforms/InstCombine/2006-10-19-SignedToUnsignedCastAndConst.ll
test/Transforms/InstCombine/binop-cast.ll [new file with mode: 0644]
test/Transforms/InstCombine/call-cast-target.ll
test/Transforms/InstCombine/cast-malloc.ll [new file with mode: 0644]
test/Transforms/InstCombine/cast.ll
test/Transforms/InstCombine/cast_ptr.ll
test/Transforms/InstCombine/fpcast.ll [new file with mode: 0644]
test/Transforms/InstCombine/getelementptr_cast.ll
test/Transforms/InstCombine/getelementptr_index.ll
test/Transforms/InstCombine/narrow.ll
test/Transforms/InstCombine/setcc-cast-cast.ll [new file with mode: 0644]
test/Transforms/InstCombine/zext.ll [new file with mode: 0644]
test/Transforms/LevelRaise/2002-03-21-MissedRaise.ll
test/Transforms/LevelRaise/2002-03-21-MissedRaise2.ll
test/Transforms/LevelRaise/2002-03-21-MissedRaise3.ll
test/Transforms/LevelRaise/2002-04-16-MissedRaise.ll
test/Transforms/LevelRaise/2002-05-02-MissedRaise.ll
test/Transforms/LevelRaise/2002-05-10-LoadPeephole.ll
test/Transforms/LevelRaise/2002-05-23-MissedRaise.ll
test/Transforms/LevelRaise/2002-07-16-MissedRaise.ll
test/Transforms/LevelRaise/2002-07-18-MissedAllocaRaise.ll
tools/bugpoint/ExtractFunction.cpp
tools/bugpoint/Miscompilation.cpp
tools/llvm2cpp/CppWriter.cpp