When GVN sets the incoming value for a phi to undef because the incoming block is unreachable it needs to also invalidate the cached info for that phi in MemoryDependenceAnalysis, otherwise later queries will return stale information.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM
lib/Transforms/Scalar/GVN.cpp | ||
---|---|---|
2460 ↗ | (On Diff #161926) | The isPtrOrPtrVectorTy check is unnecessary; invalidateCachedPointerInfo does its own check. |