[all-commits] [llvm/llvm-project] f00941: [DSE] Support opaque pointers
Nikita Popov via All-commits
all-commits at lists.llvm.org
Sun Jun 27 08:41:56 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f00941e061f39646b05fcab93f892fc793845da1
https://github.com/llvm/llvm-project/commit/f00941e061f39646b05fcab93f892fc793845da1
Author: Nikita Popov <nikita.ppv at gmail.com>
Date: 2021-06-27 (Sun, 27 Jun 2021)
Changed paths:
M llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
M llvm/test/Transforms/DeadStoreElimination/OverwriteStoreBegin.ll
Log Message:
-----------
[DSE] Support opaque pointers
For the start shortening optimization, always use a i8 type for
the GEP, as it is a raw offset calculation.
Handling of non-i8* memset/memcpy arguments requires insertion
of casts. These cases were previously miscompiled, as the offset
calculation was performed on the wrong type.
More information about the All-commits
mailing list