diff options
author | Craig Topper <craig.topper@sifive.com> | 2024-01-29 11:16:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-29 11:16:36 -0800 |
commit | 295059409f75e13bf000d536cb8d287e35153c83 (patch) | |
tree | 7429a10e807d513419822a061d7fb163105f70b0 /llvm/lib/ProfileData/Coverage/CoverageMapping.cpp | |
parent | 547c395b279a93357082ac06cf3e8fe37ebfc3fe (diff) | |
download | llvm-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