Files
clang-p2996/clang/test/CodeGenCXX
Vedant Kumar dbbdda4d23 [ubsan] Skip null checks if they are constant-folded away
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
2017-04-17 22:26:10 +00:00
..
2016-02-02 12:39:08 +00:00
2016-11-16 19:31:44 +00:00
2016-11-09 23:10:44 +00:00
2016-12-01 20:16:56 +00:00
2016-07-12 16:56:33 +00:00
2016-02-20 09:23:41 +00:00
2016-07-29 19:43:28 +00:00
2016-03-22 17:10:07 +00:00
2016-06-21 03:43:11 +00:00
2016-06-14 21:02:05 +00:00