[llvm] [DirectX] legalize memset (PR #136244)
Farzon Lotfi via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 21 15:45:54 PDT 2025
================
@@ -106,6 +105,7 @@ class DirectXPassConfig : public TargetPassConfig {
DxilScalarOptions.ScalarizeLoadStore = true;
addPass(createScalarizerPass(DxilScalarOptions));
addPass(createDXILLegalizeLegacyPass());
+ addPass(createDXILFinalizeLinkageLegacyPass());
----------------
farzonl wrote:
the legalize legacy pass is a function level pass so it leaves behind the intrinsic decleration in the module. finalize linkage has a cleanup that will remove these dead intrinsics declarations so doing this after legalization works better for cleanup purposes.
https://github.com/llvm/llvm-project/pull/136244
More information about the llvm-commits
mailing list