aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2020-09-07 10:26:42 -0400
committerSanjay Patel <spatel@rotateright.com>2020-09-07 10:44:08 -0400
commitb22910daab95be1ebc6ab8a74190e38130b0e6ef (patch)
treee7990e20f70064f1b194daa5efb6801744f8d911 /clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
parenta70f2eb3e39a42a71ba077247f9deafbdf1e8092 (diff)
downloadllvm-b22910daab95be1ebc6ab8a74190e38130b0e6ef.zip
llvm-b22910daab95be1ebc6ab8a74190e38130b0e6ef.tar.gz
llvm-b22910daab95be1ebc6ab8a74190e38130b0e6ef.tar.bz2
[InstCombine] erase instructions leading up to unreachable
Normal dead code elimination ignores assume intrinsics, so we fail to delete assumes that are not meaningful (and potentially worse if they cause conflicts with other assumptions). The motivating example in https://llvm.org/PR47416 suggests that we might have problems upstream from here (difference between C and C++), but this should be a cheap way to make sure we remove more dead code. Differential Revision: https://reviews.llvm.org/D87149
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp')
0 files changed, 0 insertions, 0 deletions