aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorAdam Paszke <adam.paszke@gmail.com>2025-01-25 16:28:21 +0100
committerGitHub <noreply@github.com>2025-01-25 07:28:21 -0800
commit21f04b1458c52ba875a23b58b02cf6b1f8db0661 (patch)
treee22f411541fcb0d7356f6cee80e017c4a4605256 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent9325a61aa0960595c22867799ebd157c8160fd86 (diff)
downloadllvm-21f04b1458c52ba875a23b58b02cf6b1f8db0661.zip
llvm-21f04b1458c52ba875a23b58b02cf6b1f8db0661.tar.gz
llvm-21f04b1458c52ba875a23b58b02cf6b1f8db0661.tar.bz2
Hold a queue of iterator ranges (not operations) in wouldOpBeTriviallyDead (#123642)
Ranges let us push the whole blocks onto the queue in constant time. If one of the first ops in the block is side-effecting we'll be able to provide the answer quickly. The previous implementation had to walk the block and queue all the operations only to start traversing them again, which was a considerable slowdown for compile times of large MLIR programs in our benchmarks. --------- Co-authored-by: Jacques Pienaar <jpienaar@google.com>
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions