pytorch
6eca391e - inductor(cpu): remove __restrict__ keyword to avoid generating wrong result when two pointer point same memory (#96492)

Commit
1 year ago
inductor(cpu): remove __restrict__ keyword to avoid generating wrong result when two pointer point same memory (#96492) Fix https://github.com/pytorch/pytorch/issues/93365, https://github.com/pytorch/pytorch/issues/93357 and https://github.com/pytorch/pytorch/issues/96432. Currently, remove `__restrict__` keyword to avoid generating the wrong result, there has a draft PR https://github.com/pytorch/pytorch/pull/96404 to do some memory alias checks before adding `__restrict__ `keyword, but that PR needs to re-designed well for the logic of the memory alias checks. Pull Request resolved: https://github.com/pytorch/pytorch/pull/96492 Approved by: https://github.com/jgong5, https://github.com/desertfire
Author
Committer
Parents
Loading