Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| llvm/lib/Transforms/Scalar/GVNHoist.cpp | ||
|---|---|---|
| 525 | IMO I think it would preferable to check at the call site where we get the MemoryUseOrDef and not call safeToHoistLdSt without MemoryUseOrDef. | |
| llvm/test/Transforms/GVNHoist/pr45442.ll | ||
| 21 | nit: branch on undef is UB, so it is probably best to avoid it and use a i1 parameter or something instead | |
| llvm/test/Transforms/GVNHoist/pr45442.ll | ||
|---|---|---|
| 21 | No worries! Also might be good to replace the unreachable with ret void, if it still reproduces the crash. | |
Thanks, LGTM although the test appease to still use branch on undef. Would be good to adjust before committing.
| llvm/lib/Transforms/Scalar/GVNHoist.cpp | ||
|---|---|---|
| 608–611 | nit: auto * T? | |
IMO I think it would preferable to check at the call site where we get the MemoryUseOrDef and not call safeToHoistLdSt without MemoryUseOrDef.