llvm-6502/lib/Transforms
Duncan P. N. Exon Smith 5c71858076 instcombine: alloca: Limit array size type promotion
Move type promotion of the size of the array allocation to the end of
`simplifyAllocaArraySize()`.  This avoids promoting the type of the
array size if it's a `ConstantInt`, since the next -instcombine
iteration will drop it to a scalar allocation anyway.  Similarly, this
avoids promoting the type if it's an `UndefValue`, in which case the
alloca gets RAUW'ed.

This is NFC when considered over the lifetime of -instcombine, since
it's just reducing the number of iterations needed to reach fixed point.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232201 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-13 19:34:55 +00:00
..
Hello [CMake] Add LLVM_LINK_COMPONENTS to loadable modules, LLVMHello and BugpointPasses, on Win32. 2014-07-13 13:36:48 +00:00
InstCombine instcombine: alloca: Limit array size type promotion 2015-03-13 19:34:55 +00:00
Instrumentation DataLayout is mandatory, update the API to reflect it with references. 2015-03-10 02:37:25 +00:00
IPO Reapply 'Run LICM pass after loop unrolling pass.' 2015-03-12 05:36:01 +00:00
ObjCARC DataLayout is mandatory, update the API to reflect it with references. 2015-03-10 02:37:25 +00:00
Scalar Revert: "[Reassociate] Add initial support for vector instructions." 2015-03-13 19:20:46 +00:00
Utils Extended support for native Windows C++ EH outlining 2015-03-11 23:22:06 +00:00
Vectorize [LAA-memchecks 2/3] Move number of memcheck threshold checking to LV 2015-03-10 18:54:23 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile