1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 04:22:57 +02:00
llvm-mirror/lib/Transforms/Scalar
Chandler Carruth 3d8b7669f2 [LIR] Remove the dedicated class for popcount recognition and sink the
code into methods on LoopIdiomRecognize.

This simplifies the code somewhat and also makes it much easier to move
the analyses around. Ultimately, the separate class wasn't providing
significant value over methods -- it contained the precondition basic
block and the current loop. The current loop is already available and
the precondition block wasn't needed everywhere and is easy to pass
around.

In several cases I just moved things to be static functions because they
already accepted most of their inputs as arguments.

This doesn't fix the way we manage analyses yet, that will be the next
patch, but it already makes the code over 50 lines shorter.

No functionality changed.

llvm-svn: 244851
2015-08-13 00:44:29 +00:00
..
ADCE.cpp Rename inst_range() to instructions() for consistency. NFC 2015-08-06 19:10:45 +00:00
AlignmentFromAssumptions.cpp
BDCE.cpp Rename inst_range() to instructions() for consistency. NFC 2015-08-06 19:10:45 +00:00
CMakeLists.txt
ConstantHoisting.cpp
ConstantProp.cpp
CorrelatedValuePropagation.cpp
DCE.cpp
DeadStoreElimination.cpp [PM/AA] Add missing static dependency edges from DSE and memdep to TLI. 2015-08-12 18:10:45 +00:00
EarlyCSE.cpp Rename all references to old mailing lists to new lists.llvm.org address. 2015-08-05 03:51:17 +00:00
FlattenCFGPass.cpp
Float2Int.cpp Rename inst_range() to instructions() for consistency. NFC 2015-08-06 19:10:45 +00:00
GVN.cpp Fix some comment typos. 2015-08-08 18:27:36 +00:00
InductiveRangeCheckElimination.cpp
IndVarSimplify.cpp [IndVarSimplify] Make cost estimation in RewriteLoopExitValues smarter 2015-08-10 18:23:58 +00:00
JumpThreading.cpp Drive-by fixes for LandingPad -> EHPad 2015-08-04 08:21:40 +00:00
LICM.cpp Fix some comment typos. 2015-08-08 18:27:36 +00:00
LLVMBuild.txt
LoadCombine.cpp
LoopDeletion.cpp
LoopDistribute.cpp [LAA] Make the set of runtime checks part of the state of LAA, NFC 2015-08-07 22:44:15 +00:00
LoopIdiomRecognize.cpp [LIR] Remove the dedicated class for popcount recognition and sink the 2015-08-13 00:44:29 +00:00
LoopInstSimplify.cpp
LoopInterchange.cpp Fix some comment typos. 2015-08-08 18:27:36 +00:00
LoopRerollPass.cpp Handle loop with negtive induction variable increment 2015-07-24 22:01:49 +00:00
LoopRotation.cpp Convert a bunch of loops to foreach. NFC. 2015-08-06 20:22:46 +00:00
LoopStrengthReduce.cpp Revert "[LSR] Generate and use zero extends" 2015-08-04 01:52:05 +00:00
LoopUnrollPass.cpp Add new llvm.loop.unroll.enable metadata. 2015-08-10 17:28:08 +00:00
LoopUnswitch.cpp don't repeat function names in comments; NFC 2015-08-11 21:24:04 +00:00
LowerAtomic.cpp
LowerExpectIntrinsic.cpp
Makefile
MemCpyOptimizer.cpp [PM/AA] Extract the ModRef enums from the AliasAnalysis class in 2015-07-22 23:15:57 +00:00
MergedLoadStoreMotion.cpp [PM/AA] Extract the ModRef enums from the AliasAnalysis class in 2015-07-22 23:15:57 +00:00
NaryReassociate.cpp [NaryReassociate] remove redundant code 2015-07-23 23:13:37 +00:00
PartiallyInlineLibCalls.cpp
PlaceSafepoints.cpp Fix some comment typos. 2015-08-08 18:27:36 +00:00
Reassociate.cpp [Reassociation] Fix miscompile for va_arg arguments. 2015-08-06 18:44:34 +00:00
Reg2Mem.cpp
RewriteStatepointsForGC.cpp [RewriteStatepointsForGC] Avoid using unrelocated pointers after safepoints 2015-08-12 22:11:45 +00:00
SampleProfile.cpp
Scalar.cpp [PM/AA] Hoist the interface for BasicAA into a header file. 2015-08-06 07:33:15 +00:00
Scalarizer.cpp Prevent the scalarizer from caching incorrect entries 2015-08-10 14:48:47 +00:00
ScalarReplAggregates.cpp
SCCP.cpp Convert a bunch of loops to foreach. NFC. 2015-08-06 20:22:46 +00:00
SeparateConstOffsetFromGEP.cpp
SimplifyCFGPass.cpp
Sink.cpp [PM/AA] Extract the ModRef enums from the AliasAnalysis class in 2015-07-22 23:15:57 +00:00
SpeculativeExecution.cpp
SROA.cpp Fix some comment typos. 2015-08-08 18:27:36 +00:00
StraightLineStrengthReduce.cpp Roll forward r243250 2015-07-26 19:10:03 +00:00
StructurizeCFG.cpp Convert a bunch of loops to foreach. NFC. 2015-08-06 20:22:46 +00:00
TailRecursionElimination.cpp