Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion llvm/lib/IR/Instruction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ bool Instruction::hasNonDebugLocLoopMetadata() const {
// the first item because it is a self-reference.
for (const MDOperand &Op : llvm::drop_begin(LoopMD->operands())) {
// check for debug location type by attempting a cast.
if (!dyn_cast<DILocation>(Op)) {
if (!isa<DILocation>(Op)) {
return true;
}
}
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8751,7 +8751,7 @@ foldBinOpIntoSelectIfProfitable(SDNode *BO, SelectionDAG &DAG,

unsigned ConstSelOpNo = 1;
unsigned OtherSelOpNo = 2;
if (!dyn_cast<ConstantSDNode>(Sel->getOperand(ConstSelOpNo))) {
if (!isa<ConstantSDNode>(Sel->getOperand(ConstSelOpNo))) {
ConstSelOpNo = 2;
OtherSelOpNo = 1;
}
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1656,7 +1656,7 @@ class StrlenVerifier {
// We only want RecAddExpr with recurrence step that is constant. This
// is good enough for all the idioms we want to recognize. Later we expand
// and materialize the recurrence as {base,+,a} -> (base + a * strlen)
if (!dyn_cast<SCEVConstant>(AddRecEv->getStepRecurrence(*SE)))
if (!isa<SCEVConstant>(AddRecEv->getStepRecurrence(*SE)))
return false;
}

Expand Down
Loading