Why should I know this?

아쉬운 패치 본문

개인적

아쉬운 패치

die4taoam 2024. 7. 4. 08:26

 

 

https://discourse.llvm.org/t/do-we-need-to-support-for-selectinst-to-domcache/78662

Select 관련 최적화 패치 개발을 진행하다가 Select Cond가 KnownBits 추산에 활용되지 않아서 올린 질문 글.

 

답변 내용에 따라 한정적으로 Select Cond 를 KnownBits 추산에 활용한 패치

https://github.com/llvm/llvm-project/pull/91762

 

[InstCombine] Try optimizing with knownbits which determined from Cond by ParkHanbum · Pull Request #91762 · llvm/llvm-project

This PR was submitted to implement the optimizations discussed in #73362. Q. I have very little experience sending PRs, is this the right way to write commit messages for tests related to a patch? ...

github.com

 

 

https://github.com/llvm/llvm-project/pull/95923

 

[InstCombine] Simplify select using KnownBits of condition by nikic · Pull Request #95923 · llvm/llvm-project

Simplify the arms of a select based on the KnownBits implied by its condition. For now this only handles the case where the select arm folds to a constant, but this can be generalized to handle oth...

github.com

나중에 올라온 패치.

 

 

 

 

Top 5 improvements:
postgres/unicode_norm_shlib.ll 363748825 350961218 -3.52%
meshlab/MarchingCubes.cpp.ll 675246704 656351184 -2.80%
tev/HelpWindow.cpp.ll 1029062714 1002529143 -2.58%
faiss/AdditiveQuantizer.cpp.ll 1493267399 1458937166 -2.30%
faiss/InvertedLists.cpp.ll 1529590909 1496064094 -2.19%
Top 5 regressions:
eastl/TestBitset.cpp.ll 7404525337 7721492909 +4.28%
hwloc/bitmap.ll 1254672490 1289997586 +2.82%
libwebp/upsampling.c.ll 1495289974 1528316818 +2.21%
faiss/IndexScalarQuantizer.cpp.ll 635573896 649291704 +2.16%
meshlab/meshfilter.cpp.ll 77037371771 78638508357 +2.08%
Overall: 0.04310683%

 

(-_- ;) 내 실력 부족이 아쉽다.

그러나 내 생각은 틀리지 않았다는 걸 확인한 걸로 만족.

 

'개인적' 카테고리의 다른 글

Mac에서 Docker 사용 관련 모음  (0) 2022.12.12
visual studio format style 백업  (0) 2022.11.08
Comments