Revert "reland e5581df60a35 [SimplifyCFG] accumulate bonus insts cost"
authorYaxun (Sam) Liu <yaxun.liu@amd.com>
Tue, 25 Oct 2022 16:15:39 +0000 (12:15 -0400)
committerYaxun (Sam) Liu <yaxun.liu@amd.com>
Tue, 25 Oct 2022 16:15:39 +0000 (12:15 -0400)
commit9d5adc7e49c12e5a9f8225d0460509b6be8ea344
tree9ef38d295bf8bdb5a666c76b3b0b106286178d3f
parentb3c9ced93cbc4a497ea350737f80e4d108a7fa53
Revert "reland e5581df60a35 [SimplifyCFG] accumulate bonus insts cost"

This reverts commit bd7949bcd86633bd4203b2ba6f891aea00fce4d1.

Revert this patch since reviwers have different opinions regarding
the approach in post-commit review.

Will open RFC for further discussion.

Differential Revision: https://reviews.llvm.org/D132408
llvm/include/llvm/Transforms/Utils/Local.h
llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
llvm/lib/Transforms/Utils/LoopSimplify.cpp
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
llvm/test/Transforms/LoopUnroll/peel-loop-inner.ll
llvm/test/Transforms/PhaseOrdering/X86/vector-reductions-logical.ll
llvm/test/Transforms/SimplifyCFG/branch-fold-multiple.ll
llvm/test/Transforms/SimplifyCFG/branch-fold-threshold.ll
llvm/test/Transforms/SimplifyCFG/fold-branch-to-common-dest-two-preds-cost.ll