OSDN Git Service

[NFCI][SimplifyCFG] Guard common code hoisting with a (default-on) flag
authorRoman Lebedev <lebedev.ri@gmail.com>
Mon, 20 Jul 2020 06:56:38 +0000 (09:56 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Mon, 20 Jul 2020 07:29:57 +0000 (10:29 +0300)
commit04b729d076af038c2a86b62c0c150e340bf7a622
tree7d3c12e9625053dae1965a2abf3ac5b0e69059a1
parent3de41663251941e4c12ceb3b12b5d43c54a27a24
[NFCI][SimplifyCFG] Guard common code hoisting with a (default-on) flag

Common code sinking is already guarded with a (with default-off!) flag,
so add a flag for hoisting, too.

D84108 will hopefully make hoisting off-by-default too.
24 files changed:
llvm/include/llvm/Transforms/Utils/SimplifyCFGOptions.h
llvm/lib/Passes/PassBuilder.cpp
llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
llvm/test/Transforms/GVNSink/indirect-call.ll
llvm/test/Transforms/GVNSink/sink-common-code.ll
llvm/test/Transforms/SimplifyCFG/2008-12-16-DCECond.ll
llvm/test/Transforms/SimplifyCFG/AArch64/prefer-fma.ll
llvm/test/Transforms/SimplifyCFG/BrUnwind.ll
llvm/test/Transforms/SimplifyCFG/HoistCode.ll
llvm/test/Transforms/SimplifyCFG/PowerPC/prefer-fma.ll
llvm/test/Transforms/SimplifyCFG/PowerPC/prefer-load-i32.ll
llvm/test/Transforms/SimplifyCFG/UncondBranchToReturn.ll
llvm/test/Transforms/SimplifyCFG/X86/empty-cleanuppad.ll
llvm/test/Transforms/SimplifyCFG/X86/pr39187-g.ll
llvm/test/Transforms/SimplifyCFG/X86/remove-debug.ll
llvm/test/Transforms/SimplifyCFG/common-code-hoisting.ll
llvm/test/Transforms/SimplifyCFG/hoist-common-code.ll
llvm/test/Transforms/SimplifyCFG/hoist-dbgvalue-inlined.ll
llvm/test/Transforms/SimplifyCFG/hoist-with-range.ll
llvm/test/Transforms/SimplifyCFG/pr39807.ll
llvm/test/Transforms/SimplifyCFG/preserve-load-metadata-2.ll
llvm/test/Transforms/SimplifyCFG/preserve-load-metadata-3.ll
llvm/test/Transforms/SimplifyCFG/preserve-load-metadata.ll