llvm-6502/lib/Transforms/Scalar
Dan Gohman 58cfa3b137 Rename Instruction::isIdenticalTo to Instruction::isIdenticalToWhenDefined,
and introduce a new Instruction::isIdenticalTo which tests for full
identity, including the SubclassOptionalData flags. Also, fix the
Instruction::clone implementations to preserve the SubclassOptionalData
flags. Finally, teach several optimizations how to handle
SubclassOptionalData correctly, given these changes.

This fixes the counterintuitive behavior of isIdenticalTo not comparing
the full value, and clone not returning an identical clone, as well as
some subtle bugs that could be caused by these.

Thanks to Nick Lewycky for reporting this, and for an initial patch!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80038 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-25 22:11:20 +00:00
..
ADCE.cpp Allow readonly functions to unwind exceptions. Teach 2009-05-06 06:49:50 +00:00
BasicBlockPlacement.cpp More ProfileInfo improvements. 2009-08-08 17:43:09 +00:00
CMakeLists.txt Fix linking of llvm-ld and lli with CMake, from Xerxes Rånby 2009-06-26 15:37:00 +00:00
CodeGenPrepare.cpp eliminate the "Value" printing methods that print to a std::ostream. 2009-08-23 04:37:46 +00:00
CondPropagate.cpp Kill off more cerr/cout uses and prune includes a bit. 2009-08-23 11:37:21 +00:00
ConstantProp.cpp Get rid of the Pass+Context magic. 2009-07-22 00:24:57 +00:00
DCE.cpp
DeadStoreElimination.cpp Fix this condition I accidentally inverted. 2009-07-24 18:31:07 +00:00
GVN.cpp Push LLVMContexts through the IntegerType APIs. 2009-08-13 21:58:54 +00:00
GVNPRE.cpp remove a few DOUTs here and there. 2009-08-23 06:35:02 +00:00
IndVarSimplify.cpp Special-case static allocas in IndVarSimplify's loop invariant 2009-08-25 17:42:10 +00:00
InstructionCombining.cpp Rename Instruction::isIdenticalTo to Instruction::isIdenticalToWhenDefined, 2009-08-25 22:11:20 +00:00
JumpThreading.cpp Push LLVMContexts through the IntegerType APIs. 2009-08-13 21:58:54 +00:00
LICM.cpp eliminate the "Value" printing methods that print to a std::ostream. 2009-08-23 04:37:46 +00:00
LoopDeletion.cpp Make makeLoopInvariant report whether it made any changes or not, 2009-07-15 01:25:43 +00:00
LoopIndexSplit.cpp Push LLVMContexts through the IntegerType APIs. 2009-08-13 21:58:54 +00:00
LoopRotation.cpp Push LLVMContexts through the IntegerType APIs. 2009-08-13 21:58:54 +00:00
LoopStrengthReduce.cpp eliminate the "Value" printing methods that print to a std::ostream. 2009-08-23 04:37:46 +00:00
LoopUnroll.cpp Simplify conditional. 2009-08-13 03:05:20 +00:00
LoopUnswitch.cpp eliminate the "Value" printing methods that print to a std::ostream. 2009-08-23 04:37:46 +00:00
Makefile
MemCpyOptimizer.cpp eliminate the "Value" printing methods that print to a std::ostream. 2009-08-23 04:37:46 +00:00
PredicateSimplifier.cpp eliminate uses of cerr() 2009-08-23 07:05:07 +00:00
Reassociate.cpp remove the std::ostream version of module and type printing. 2009-08-23 04:52:46 +00:00
Reg2Mem.cpp Push LLVMContexts through the IntegerType APIs. 2009-08-13 21:58:54 +00:00
Scalar.cpp add a bunch more passes to the C bindings (PR3734), patch by 2009-03-06 16:52:18 +00:00
ScalarReplAggregates.cpp eliminate the "Value" printing methods that print to a std::ostream. 2009-08-23 04:37:46 +00:00
SCCP.cpp eliminate the "Value" printing methods that print to a std::ostream. 2009-08-23 04:37:46 +00:00
SimplifyCFGPass.cpp Push LLVMContexts through the IntegerType APIs. 2009-08-13 21:58:54 +00:00
SimplifyHalfPowrLibCalls.cpp Remove Value::getName{Start,End}, the last of the old Name APIs. 2009-07-26 09:48:23 +00:00
SimplifyLibCalls.cpp Fix SimplifyLibcalls and ValueTracking to check mayBeOverridden 2009-08-19 00:11:12 +00:00
TailDuplication.cpp eliminate the "Value" printing methods that print to a std::ostream. 2009-08-23 04:37:46 +00:00
TailRecursionElimination.cpp Push LLVMContexts through the IntegerType APIs. 2009-08-13 21:58:54 +00:00