dbbdda4d23c514b7a1f1817d246d58fba0cad783
The IR builder can constant-fold null checks if the pointer operand points to a constant. If the "is-non-null" check is folded away to "true", don't emit the null check + branch. Testing: check-clang, check-ubsan. This slightly reduces the amount of null checks we emit when compiling X86ISelLowering.cpp. Here are the numbers from patched/unpatched clangs based on r300371. ------------------------------------- | Setup | # of null checks | ------------------------------------- | unpatched, -O0 | 25251 | | patched, -O0 | 23925 | (-5.3%) ------------------------------------- llvm-svn: 300509
Description
Full LLVM 23.1.5 fork for TMS34010 (compiler target + clang bit-address changes)
3.2 GiB
0 Stars
1 Watchers
0 Forks
Languages
LLVM
42.2%
C++
29.9%
C
12.6%
Assembly
10.2%
MLIR
1.7%
Other
2.9%