[all-commits] [llvm/llvm-project] 88771c: [DSE] Simplify based on opaque pointers
Björn Pettersson via All-commits
all-commits at lists.llvm.org
Mon Sep 18 13:17:44 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 88771c4181171436bac929cdd33207d244ec26f4
https://github.com/llvm/llvm-project/commit/88771c4181171436bac929cdd33207d244ec26f4
Author: Bjorn Pettersson <bjorn.a.pettersson at ericsson.com>
Date: 2023-09-18 (Mon, 18 Sep 2023)
Changed paths:
M llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
Log Message:
-----------
[DSE] Simplify based on opaque pointers
Given the transition to opaque pointers we no longer need to emit
some pointer casts. Int8PtrTy was set up to be a ptr in same address
space a OrigDest, making the first CreatePointerCast dead. And then
NewDestGEP will end up having the same type as OrigDest, making the
second CreatePointerCast dead.
Commit: 08fdbbeb09c06ff51180a3179fb86e7254f6295b
https://github.com/llvm/llvm-project/commit/08fdbbeb09c06ff51180a3179fb86e7254f6295b
Author: Bjorn Pettersson <bjorn.a.pettersson at ericsson.com>
Date: 2023-09-18 (Mon, 18 Sep 2023)
Changed paths:
M llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
Log Message:
-----------
[MemCpyOpt] Drop redundant CreatePointerCast
Given that transition to opaque pointers a call to CreatePointerCast
in processMemSetMemCpyDependence was found redundant. It would cast
from "ptr" to "ptr" (both associated with the same address space).
Commit: 07ece4ed94eef1af44e2dfeaf99176418142daee
https://github.com/llvm/llvm-project/commit/07ece4ed94eef1af44e2dfeaf99176418142daee
Author: Bjorn Pettersson <bjorn.a.pettersson at ericsson.com>
Date: 2023-09-18 (Mon, 18 Sep 2023)
Changed paths:
M llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
Log Message:
-----------
[SimplifyLibCalls] Drop redundant CreatePointerCast in optimizeSPrintFString
Given the transition into using opaque pointers we no longer need to
add casts to handle "mismatched pointer types" as all pointers types
involved now are the same.
Compare: https://github.com/llvm/llvm-project/compare/fba474d3d6af...07ece4ed94ee
More information about the All-commits
mailing list