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 299ebdb commit 8a939cfCopy full SHA for 8a939cf
IGC/VectorCompiler/lib/GenXCodeGen/GenXSimdCFConformance.cpp
@@ -2088,8 +2088,8 @@ void GenXSimdCFConformance::lowerUnsuitableGetEMs() {
2088
}
2089
2090
// Constants and non-EM values should be used directly
2091
- if (dyn_cast<Constant>(GetEMPred) ||
2092
- !getEMProducer(dyn_cast<Instruction>(GetEMPred), Visited)) {
+ if (auto *Inst = dyn_cast<Instruction>(GetEMPred);
+ isa<Constant>(GetEMPred) || Inst && !getEMProducer(Inst, Visited)) {
2093
GetEM->replaceAllUsesWith(GetEM->getOperand(0));
2094
ToDelete.push_back(GetEM);
2095
0 commit comments