We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f4fc0e commit a575afdCopy full SHA for a575afd
IGC/Compiler/CISACodeGen/EmitVISAPass.cpp
@@ -5503,7 +5503,7 @@ void EmitPass::emitSimdShuffle(llvm::Instruction *inst) {
5503
5504
bool bAllowLVNMatchingForAnd = true;
5505
if (isSimd32 && data->GetType() == ISA_TYPE_F) {
5506
- if (auto *prevInst = dyn_cast<llvm::Instruction>(inst->getPrevNode()))
+ if (auto *prevInst = dyn_cast_or_null<llvm::Instruction>(inst->getPrevNode()))
5507
if (GetOpCode(prevInst) == EOPCODE::llvm_fadd)
5508
bAllowLVNMatchingForAnd = false;
5509
}
0 commit comments