aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2024-01-29 11:16:36 -0800
committerGitHub <noreply@github.com>2024-01-29 11:16:36 -0800
commit295059409f75e13bf000d536cb8d287e35153c83 (patch)
tree7429a10e807d513419822a061d7fb163105f70b0 /llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
parent547c395b279a93357082ac06cf3e8fe37ebfc3fe (diff)
downloadllvm-295059409f75e13bf000d536cb8d287e35153c83.zip
llvm-295059409f75e13bf000d536cb8d287e35153c83.tar.gz
llvm-295059409f75e13bf000d536cb8d287e35153c83.tar.bz2
[PatternMatch] Use dyn_cast in CastInst_match instead of checking opcode. NFC (#79878)
Using dyn_cast allows us to use CastInst::getOperand instead of Instruction::getOperand. This is more efficient since CastInst::getOperand doesn't need to check how the operands are stored. Instruction::getOperand has to consider HungOffUses.
Diffstat (limited to 'llvm/lib/ProfileData/Coverage/CoverageMapping.cpp')
0 files changed, 0 insertions, 0 deletions