llvm/lib/VMCore
Dan Gohman 0e488b3d1c Canonicalize ConstantInts to the right operand of commutative
operators.

The test difference is just due to the multiplication operands
being commuted (and thus requiring a more elaborate match). In
optimized code, that expression would be folded.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96816 91177308-0d34-0410-b5e6-96231b3b80d8
2010-02-22 22:43:23 +00:00
..
AsmWriter.cpp Introduce isOpaqueTy and use it rather than isa<OpaqueType>. Also, move some 2010-02-16 14:50:09 +00:00
Attributes.cpp There are two ways of checking for a given type, for example isa<PointerType>(T) 2010-02-16 11:11:14 +00:00
AutoUpgrade.cpp
BasicBlock.cpp
CMakeLists.txt Update CMake build. 2010-01-27 20:44:12 +00:00
ConstantFold.cpp Canonicalize ConstantInts to the right operand of commutative 2010-02-22 22:43:23 +00:00
ConstantFold.h eliminate a bunch of pointless LLVMContext arguments. 2010-02-01 20:48:08 +00:00
Constants.cpp replaceUsesOfWithOnConstant implementation for unions. 2010-02-18 21:43:45 +00:00
ConstantsContext.h Add support for a union type in LLVM IR. Patch by Talin! 2010-02-12 20:49:41 +00:00
Core.cpp Function attributes have index ~0, not 0 2010-02-16 19:28:02 +00:00
Dominators.cpp
Function.cpp Introduce isOpaqueTy and use it rather than isa<OpaqueType>. Also, move some 2010-02-16 14:50:09 +00:00
Globals.cpp A function with no Module owner isn't materializable. This fixes F->dump() for 2010-02-15 21:27:20 +00:00
GVMaterializer.cpp Kill ModuleProvider and ghost linkage by inverting the relationship between 2010-01-27 20:34:15 +00:00
InlineAsm.cpp There are two ways of checking for a given type, for example isa<PointerType>(T) 2010-02-16 11:11:14 +00:00
Instruction.cpp
Instructions.cpp There are two ways of checking for a given type, for example isa<PointerType>(T) 2010-02-16 11:11:14 +00:00
IntrinsicInst.cpp
IRBuilder.cpp Fix several comments which had previously been "the the" where a 2010-02-10 20:04:19 +00:00
LeakDetector.cpp
LeaksContext.h
LLVMContext.cpp
LLVMContextImpl.h Destroy MDNodes gracefully while deleting llvm context. 2010-02-18 20:53:16 +00:00
Makefile
Metadata.cpp Destroy MDNodes gracefully while deleting llvm context. 2010-02-18 20:53:16 +00:00
Module.cpp Kill ModuleProvider and ghost linkage by inverting the relationship between 2010-01-27 20:34:15 +00:00
Pass.cpp Make PassRegistrar thread-safe since it can be modified by code running in 2010-02-13 00:03:17 +00:00
PassManager.cpp Don't try to materialize a function that isn't materializable anyways. This 2010-02-15 21:27:56 +00:00
PrintModulePass.cpp
SymbolTableListTraitsImpl.h
Type.cpp Introduce isOpaqueTy and use it rather than isa<OpaqueType>. Also, move some 2010-02-16 14:50:09 +00:00
TypesContext.h Add support for a union type in LLVM IR. Patch by Talin! 2010-02-12 20:49:41 +00:00
TypeSymbolTable.cpp
Use.cpp
Value.cpp Introduce isOpaqueTy and use it rather than isa<OpaqueType>. Also, move some 2010-02-16 14:50:09 +00:00
ValueSymbolTable.cpp
ValueTypes.cpp There are two ways of checking for a given type, for example isa<PointerType>(T) 2010-02-16 11:11:14 +00:00
Verifier.cpp There are two ways of checking for a given type, for example isa<PointerType>(T) 2010-02-16 11:11:14 +00:00