llvm-6502/lib
David Majnemer a40a3a5981 Combine bit test + conditional or into simple math
Simplify:
(select (icmp eq (and X, C1), 0), Y, (or Y, C2))

Into:
(or (shl (and X, C1), C3), y)

Where:
C3 = Log(C2) - Log(C1)

If:
C1 and C2 are both powers of two


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179748 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-18 07:30:07 +00:00
..
Analysis A limit of 500 was still a bit too high for some tests. 2013-04-17 20:02:32 +00:00
Archive Fix auto_ptr is deprecated warnings 2013-02-26 21:20:35 +00:00
AsmParser Rationalize the formatting of these case labels. Having two sorted 2013-04-09 19:46:46 +00:00
Bitcode Whitespace cleanup 2013-04-01 02:28:07 +00:00
CodeGen Add support for subsections to the ELF assembler. Fixes PR8717. 2013-04-17 21:18:16 +00:00
DebugInfo Use StringSwitch instead of long chain of if-else. No functionality change. 2013-04-17 14:27:04 +00:00
ExecutionEngine Two small cleanups for ELF's templates. 2013-04-17 21:20:55 +00:00
IR Add an option `-enable-old-style-attr-syntax' to print out function attributes in the "old" style. 2013-04-17 23:35:59 +00:00
IRReader Measure time that IR parsing took as part of the -time-passes measurement. 2013-04-03 15:33:45 +00:00
Linker Specutively revert r178130. 2013-03-27 17:54:41 +00:00
MC Add support for subsections to the ELF assembler. Fixes PR8717. 2013-04-17 21:18:16 +00:00
Object Make the host endianness check an integer constant expression. 2013-04-15 14:44:24 +00:00
Option
Support Make the host endianness check an integer constant expression. 2013-04-15 14:44:24 +00:00
TableGen Allow TableGen DAG arguments to be just a name. 2013-03-24 19:36:51 +00:00
Target [mips] Rename function. 2013-04-18 01:00:46 +00:00
Transforms Combine bit test + conditional or into simple math 2013-04-18 07:30:07 +00:00
CMakeLists.txt Split out the IRReader header and the utility functions it provides into 2013-03-26 02:25:37 +00:00
LLVMBuild.txt Split out the IRReader header and the utility functions it provides into 2013-03-26 02:25:37 +00:00
Makefile Split out the IRReader header and the utility functions it provides into 2013-03-26 02:25:37 +00:00