llvm-6502/lib
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
..
Analysis Don't assume that two identical instructions that read from memory 2009-08-25 17:56:57 +00:00
Archive Prune #includes from llvm/Linker.h and llvm/System/Path.h, 2009-08-23 22:45:37 +00:00
AsmParser 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
Bitcode Make LLVM command-line tools overwrite their output files without -f. 2009-08-25 15:34:52 +00:00
CodeGen Fixup register kills after scheduling. 2009-08-25 17:03:05 +00:00
CompilerDriver convert LoopInfo.h and GraphWriter.h to use raw_ostream 2009-08-23 07:19:13 +00:00
Debugger Prune #includes from llvm/Linker.h and llvm/System/Path.h, 2009-08-23 22:45:37 +00:00
ExecutionEngine Fix PR4772 ARM JIT.GlobalInFuction unittest by explicitly initialize MMI 2009-08-25 10:12:55 +00:00
Linker Prune #includes from llvm/Linker.h and llvm/System/Path.h, 2009-08-23 22:45:37 +00:00
MC Revert last patch. We need to put this into TargetLowering. There will be a lot 2009-08-25 21:31:39 +00:00
Support Make LLVM command-line tools overwrite their output files without -f. 2009-08-25 15:34:52 +00:00
System remove the last uses of Config/alloca.h 2009-08-23 22:57:38 +00:00
Target Start refactoring PIC16 TargetObjectFile code. Eventually, all the stuff from 2009-08-25 19:39:05 +00:00
Transforms Rename Instruction::isIdenticalTo to Instruction::isIdenticalToWhenDefined, 2009-08-25 22:11:20 +00:00
VMCore Rename Instruction::isIdenticalTo to Instruction::isIdenticalToWhenDefined, 2009-08-25 22:11:20 +00:00
Makefile LLVMC doesn't need ENABLE_PIC to build now. 2009-07-04 03:54:54 +00:00