summaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2023-12-21 16:49:37 +0100
committerGitHub <noreply@github.com>2023-12-21 16:49:37 +0100
commita134abf4be132cfff2fc5132d6226db919c0865b (patch)
tree2e552ce533099e5c7bd7da7d9cbfb4df4f1944ef /clang/lib/CodeGen/CodeGenModule.cpp
parentb8df88b41c8a1b4e879b4fd34be3522c9b45e86f (diff)
[ValueTracking] Make isGuaranteedNotToBeUndef() more precise (#76160)
Currently isGuaranteedNotToBeUndef() is the same as isGuaranteedNotToBeUndefOrPoison(). This function is used in places where we only care about undef (due to multi-use issues), not poison. Make it more precise by only considering instructions that can create undef (like loads or call), and ignore those that can only create poison. In particular, we can ignore poison-generating flags. This means that inferring more flags has less chance to pessimize other transforms.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions