1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test
Chandler Carruth 63f95ab839 Undo a previous restriction on the inline cost calculation which Nick
introduced. Specifically, there are cost reductions for all
constant-operand icmp instructions against an alloca, regardless of
whether the alloca will in fact be elligible for SROA. That means we
don't want to abort the icmp reduction computation when we abort the
SROA reduction computation. That in turn frees us from the need to keep
a separate worklist and defer the ICmp calculations.

Use this new-found freedom and some judicious function boundaries to
factor the innards of computing the cost factor of any given instruction
out of the loop over the instructions and into static helper functions.
This greatly simplifies the code, and hopefully makes it more clear what
is happening here.

Reviewed by Eric Christopher. There is some concern that we'd like to
ensure this doesn't get out of hand, and I plan to benchmark the effects
of this change over the next few days along with some further fixes to
the inline cost.

llvm-svn: 152368
2012-03-09 02:49:36 +00:00
..
Analysis Duncan pointed out that if the alignment isn't explicitly specified, it defaults to the ABI alignment. Given that, make this code a bit more aggressive in such cases. 2012-02-27 23:16:46 +00:00
Archive
Assembler
Bindings/Ocaml
Bitcode
BugPoint
CodeGen Fix a regression from r147481. 2012-03-09 02:00:48 +00:00
DebugInfo Add the DW_AT_APPLE_runtime_class attribute to forward declarations 2012-03-07 00:15:19 +00:00
ExecutionEngine
Feature
Instrumentation
Integer
lib
Linker Add back removed code. It still causes LLVM to miscompile. But not having it breaks other things. 2012-02-27 23:48:30 +00:00
MC Use llvm-mc instead of llc. Patch by Jack Carter. 2012-03-07 20:58:59 +00:00
Object [Object] 2012-03-01 22:19:54 +00:00
Other
Scripts
TableGen Fix infinite loop in nested multiclasses. 2012-03-07 16:39:35 +00:00
Transforms Undo a previous restriction on the inline cost calculation which Nick 2012-03-09 02:49:36 +00:00
Unit
Verifier
CMakeLists.txt llvm/test/CMakeLists.txt: Update dependencies to add llvm-readobj to "check". 2012-03-01 03:14:13 +00:00
lit.cfg
lit.site.cfg.in
Makefile
Makefile.tests
site.exp.in
TestRunner.sh