llvm-6502/lib
Chris Lattner 122e2ea043 Reimplement (part of) the or -> add optimization. Matching 'or' into 'add'
is general goodness because it allows ORs to be converted to LEA to avoid
inserting copies.  However, this is bad because it makes the generated .s
file less obvious and gives valgrind heartburn (tons of false positives in
bitfield code).

While the general fix should be in valgrind, we can at least try to avoid
emitting ADD instructions that *don't* get promoted to LEA.  This is more
work because it requires introducing pseudo instructions to represents
"add that knows the bits are disjoint", but hey, people really love valgrind.

This fixes this testcase:
https://bugs.kde.org/show_bug.cgi?id=242137#c20

the add r/i cases are coming next.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116007 91177308-0d34-0410-b5e6-96231b3b80d8
2010-10-07 23:36:18 +00:00
..
Analysis Now with fewer extraneous semicolons! 2010-10-07 22:25:06 +00:00
Archive Revert "CMake: Get rid of LLVMLibDeps.cmake and export the libraries normally." 2010-09-13 23:59:48 +00:00
AsmParser Pacify a noisy compiler, and sink this variable declaration closer to its uses. 2010-09-30 21:04:13 +00:00
Bitcode Provide a fast "get me the target triple from the module" API. This can 2010-10-06 01:22:42 +00:00
CodeGen After splitting, the remaining LiveInterval may be fragmented into multiple 2010-10-07 23:34:34 +00:00
CompilerDriver llvmc: Allow multiple output languages. 2010-09-21 14:59:42 +00:00
ExecutionEngine Revert "CMake: Get rid of LLVMLibDeps.cmake and export the libraries normally." 2010-09-13 23:59:48 +00:00
Linker Revert "RequiresUnique" patch. This should be handled at a lower level. 2010-10-06 20:18:44 +00:00
MC Minor cosmetic change: fix DOSish \r\n. 2010-10-07 07:21:04 +00:00
Support Unbreak cmake build. 2010-10-07 23:12:15 +00:00
System Correctly check if a path is a directory. Fix by Brian Korver. 2010-10-07 22:05:57 +00:00
Target Reimplement (part of) the or -> add optimization. Matching 'or' into 'add' 2010-10-07 23:36:18 +00:00
Transforms Fix LSR to keep the RegUseTracker up to date when combining users. 2010-10-07 23:33:43 +00:00
VMCore Now with fewer extraneous semicolons! 2010-10-07 22:25:06 +00:00
Makefile