llvm-6502/lib/Transforms/Utils
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
..
AddrModeMatcher.cpp Change Pass::print to take a raw ostream instead of std::ostream, 2009-08-23 06:03:38 +00:00
BasicBlockUtils.cpp Rename Instruction::isIdenticalTo to Instruction::isIdenticalToWhenDefined, 2009-08-25 22:11:20 +00:00
BasicInliner.cpp eliminate the "Value" printing methods that print to a std::ostream. 2009-08-23 04:37:46 +00:00
BreakCriticalEdges.cpp Push LLVMContexts through the IntegerType APIs. 2009-08-13 21:58:54 +00:00
CloneFunction.cpp Update DebugInfo interface to use metadata, instead of special named llvm.dbg.... global variables, to encode debugging information in llvm IR. This is mostly a mechanical change that tests metadata support very well. 2009-08-25 05:24:07 +00:00
CloneLoop.cpp Simplify code by using SmallVector's pop_back_val() instead of 2009-05-06 17:22:41 +00:00
CloneModule.cpp Get rid of the Pass+Context magic. 2009-07-22 00:24:57 +00:00
CloneTrace.cpp
CMakeLists.txt Update CMake files. 2009-07-21 17:43:20 +00:00
CodeExtractor.cpp Comment-ify. 2009-08-25 17:42:07 +00:00
DemoteRegToStack.cpp Revert yesterday's change by removing the LLVMContext parameter to AllocaInst and MallocInst. 2009-07-15 23:53:25 +00:00
InlineCost.cpp Remove Value::{isName, getNameRef}. 2009-07-25 23:55:21 +00:00
InlineFunction.cpp Update DebugInfo interface to use metadata, instead of special named llvm.dbg.... global variables, to encode debugging information in llvm IR. This is mostly a mechanical change that tests metadata support very well. 2009-08-25 05:24:07 +00:00
InstructionNamer.cpp Push LLVMContexts through the IntegerType APIs. 2009-08-13 21:58:54 +00:00
LCSSA.cpp Move more code back to 2.5 APIs. 2009-07-30 23:03:37 +00:00
Local.cpp Move more code back to 2.5 APIs. 2009-07-30 23:03:37 +00:00
LoopSimplify.cpp Push LLVMContexts through the IntegerType APIs. 2009-08-13 21:58:54 +00:00
LowerAllocations.cpp Update comments to new-style syntax. 2009-08-17 18:45:31 +00:00
LowerInvoke.cpp Actually privatize a IntegerTypes, and fix a few bugs exposed by this. 2009-08-13 23:27:32 +00:00
LowerSwitch.cpp Push LLVMContexts through the IntegerType APIs. 2009-08-13 21:58:54 +00:00
Makefile Removed trailing whitespace from Makefiles. 2009-01-09 16:44:42 +00:00
Mem2Reg.cpp Get rid of the Pass+Context magic. 2009-07-22 00:24:57 +00:00
PromoteMemoryToRegister.cpp Fix a bunch of namespace pollution. 2009-08-07 01:32:21 +00:00
SimplifyCFG.cpp Rename Instruction::isIdenticalTo to Instruction::isIdenticalToWhenDefined, 2009-08-25 22:11:20 +00:00
SSI.cpp Fix up PHI nodes correctly in the presence of unreachable BBs, part two. Also 2009-08-19 07:16:57 +00:00
UnifyFunctionExitNodes.cpp Push LLVMContexts through the IntegerType APIs. 2009-08-13 21:58:54 +00:00
UnrollLoop.cpp eliminate the "Value" printing methods that print to a std::ostream. 2009-08-23 04:37:46 +00:00
ValueMapper.cpp Rename MDNode.h header. It defines MDnode and other metadata classes. 2009-07-28 21:49:47 +00:00