1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/Transforms/LoopUnrollAndJam
Mircea Trofin e90406ee2a [llvm] Make new pass manager's OptimizationLevel a class
Summary:
The old pass manager separated speed optimization and size optimization
levels into two unsigned values. Coallescing both in an enum in the new
pass manager may lead to unintentional casts and comparisons.

In particular, taking a look at how the loop unroll passes were constructed
previously, the Os/Oz are now (==new pass manager) treated just like O3,
likely unintentionally.

This change disallows raw comparisons between optimization levels, to
avoid such unintended effects. As an effect, the O{s|z} behavior changes
for loop unrolling and loop unroll and jam, matching O2 rather than O3.

The change also parameterizes the threshold values used for loop
unrolling, primarily to aid testing.

Reviewers: tejohnson, davidxl

Reviewed By: tejohnson

Subscribers: zzheng, ychen, mehdi_amini, hiraditya, steven_wu, dexonsmith, dang, cfe-commits, llvm-commits

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D72547
2020-01-16 09:00:56 -08:00
..
dependencies.ll [NFCI][LoopUnrollAndJam] Changing LoopUnrollAndJamPass to a function 2020-01-09 16:18:36 +00:00
disable_nonforced_count.ll
disable_nonforced_enable.ll
disable_nonforced.ll
disable.ll [NFCI][LoopUnrollAndJam] Changing LoopUnrollAndJamPass to a function 2020-01-09 16:18:36 +00:00
followup.ll
opt-levels.ll [llvm] Make new pass manager's OptimizationLevel a class 2020-01-16 09:00:56 -08:00
pragma-explicit.ll [NFCI][LoopUnrollAndJam] Changing LoopUnrollAndJamPass to a function 2020-01-09 16:18:36 +00:00
pragma.ll
unprofitable.ll
unroll-and-jam.ll [NFCI][LoopUnrollAndJam] Changing LoopUnrollAndJamPass to a function 2020-01-09 16:18:36 +00:00