aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2020-10-06 14:18:20 -0700
committerVedant Kumar <vsk@apple.com>2020-10-27 10:12:59 -0700
commit5a3ef55a524bf9e072d98286e5febdb218b1fc72 (patch)
tree0fd9636331470a852d8dfe955a36c69a6cc781a0 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parent1a1aad9156407bc891e2738e9877c03bd594e67f (diff)
downloadllvm-5a3ef55a524bf9e072d98286e5febdb218b1fc72.zip
llvm-5a3ef55a524bf9e072d98286e5febdb218b1fc72.tar.gz
llvm-5a3ef55a524bf9e072d98286e5febdb218b1fc72.tar.bz2
[Utils] Skip RemoveRedundantDbgInstrs in MergeBlockIntoPredecessor (PR47746)
This patch changes MergeBlockIntoPredecessor to skip the call to RemoveRedundantDbgInstrs, in effect partially reverting D71480 due to some compile-time issues spotted in LoopUnroll and SimplifyCFG. The call to RemoveRedundantDbgInstrs appears to have changed the worst-case behavior of the merging utility. Loosely speaking, it seems to have gone from O(#phis) to O(#insts). It might not be possible to mitigate this by scanning a block to determine whether there are any debug intrinsics to remove, since such a scan costs O(#insts). So: skip the call to RemoveRedundantDbgInstrs. There's surprisingly little fallout from this, and most of it can be addressed by doing RemoveRedundantDbgInstrs later. The exception is (the block-local version of) SimplifyCFG, where it might just be too expensive to call RemoveRedundantDbgInstrs. Differential Revision: https://reviews.llvm.org/D88928
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions