1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-01 16:33:37 +01:00
llvm-mirror/test/Transforms
Dan Gohman aa66e3d968 Teach lib/VMCore/ConstantFold.cpp how to set the inbounds keyword and
how to fold notionally-out-of-bounds array getelementptr indices instead
of just doing these in lib/Analysis/ConstantFolding.cpp, because it can
be done in a fairly general way without TargetData, and because not all
constants are visited by lib/Analysis/ConstantFolding.cpp. This enables
more constant folding.

Also, set the "inbounds" flag when the getelementptr indices are
one-past-the-end.

llvm-svn: 81483
2009-09-11 00:04:14 +00:00
..
ADCE Eliminate more uses of llvm-as and llvm-dis. 2009-09-09 00:09:15 +00:00
ArgumentPromotion Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
BlockPlacement Change these tests to feed the assembly files to opt directly, instead 2009-09-08 16:50:01 +00:00
BranchFolding Change these tests to feed the assembly files to opt directly, instead 2009-09-08 16:50:01 +00:00
CodeExtractor Change these tests to feed the assembly files to opt directly, instead 2009-09-08 16:50:01 +00:00
CodeGenPrepare Change these tests to feed the assembly files to opt directly, instead 2009-09-08 16:50:01 +00:00
CondProp Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
ConstantMerge Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
ConstProp Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
DeadArgElim Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
DeadStoreElimination Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
FunctionAttrs Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
GlobalDCE Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
GlobalOpt Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
GVN Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
GVNPRE Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
IndMemRem Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
IndVarSimplify Use "opt < %s" instead of "opt %s" so that opt doesn't print the test 2009-09-08 22:57:49 +00:00
Inline Eliminate more uses of llvm-as and llvm-dis. 2009-09-09 00:09:15 +00:00
InstCombine Teach lib/VMCore/ConstantFold.cpp how to set the inbounds keyword and 2009-09-11 00:04:14 +00:00
Internalize Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
IPConstantProp Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
JumpThreading Eliminate more uses of llvm-as and llvm-dis. 2009-09-09 00:09:15 +00:00
LCSSA Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
LICM Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
LoopDeletion Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
LoopIndexSplit Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
LoopRotate Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
LoopSimplify Convert a few more opt | llvm-dis to opt -S. 2009-09-08 22:41:33 +00:00
LoopStrengthReduce Eliminate more uses of llvm-as and llvm-dis. 2009-09-09 00:09:15 +00:00
LoopUnroll Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
LoopUnswitch Fix SplitCriticalEdge to properly update LCSSA form when splitting a 2009-09-09 18:18:18 +00:00
LowerInvoke Change these tests to feed the assembly files to opt directly, instead 2009-09-08 16:50:01 +00:00
LowerSetJmp Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
LowerSwitch Eliminate more uses of llvm-as and llvm-dis. 2009-09-09 00:09:15 +00:00
Mem2Reg Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
MemCpyOpt Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
MergeFunc Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
PredicateSimplifier Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
PruneEH Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
RaiseAllocations Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
Reassociate Use "opt < %s" instead of "opt %s" so that opt doesn't print the test 2009-09-08 22:57:49 +00:00
ScalarRepl Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
SCCP Use "opt < %s" instead of "opt %s" so that opt doesn't print the test 2009-09-08 22:57:49 +00:00
SimplifyCFG Convert a few more opt | llvm-dis to opt -S. 2009-09-08 22:41:33 +00:00
SimplifyLibCalls Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
SRETPromotion Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
SSI Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
StripSymbols Update test. 2009-09-09 02:41:50 +00:00
TailCallElim Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00
TailDup Use opt -S instead of piping bitcode output through llvm-dis. 2009-09-08 22:34:10 +00:00