Don't assume that the 'NextLevelOp' is an instruction.
Details
Details
Diff Detail
Diff Detail
Event Timeline
llvm/lib/Analysis/TargetTransformInfo.cpp | ||
---|---|---|
1055–1062 | It seems in case !isa<Instruction>(NextLevelOp) we should return TTI::RK_None just like for !NextLevelRD case. Correct me if I'm wrong. | |
1079–1082 | You can just replace cast to dyn_cast here since this recursive call will return TTI::RK_None for nullptr as first parameter. |
llvm/lib/Analysis/TargetTransformInfo.cpp | ||
---|---|---|
1081 | unreachable return typo ) |
It seems in case !isa<Instruction>(NextLevelOp) we should return TTI::RK_None just like for !NextLevelRD case. Correct me if I'm wrong.