Skip to content
Unverified Commit 29505940 authored by Craig Topper's avatar Craig Topper Committed by GitHub
Browse files

[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.
parent 547c395b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment