Do not move "auto-init" instruction if they're volatile
authorserge-sans-paille <sguelton@mozilla.com>
Tue, 4 Apr 2023 18:38:25 +0000 (20:38 +0200)
committerserge-sans-paille <sguelton@mozilla.com>
Tue, 4 Apr 2023 18:42:05 +0000 (20:42 +0200)
commitad9ad3735c4821ff4651fab7537a75b8f0bb60f8
tree55393ce6984df6462700deb000b491d85556b6c3
parent73fd9d310fff4d7d2b95e0509aafdf28bd3c713c
Do not move "auto-init" instruction if they're volatile

This is overly conservative, but at least it's safe.

This is a follow-up to https://reviews.llvm.org/D137707
llvm/lib/Transforms/Utils/MoveAutoInit.cpp