aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorJuneyoung Lee <aqjune@gmail.com>2020-03-15 01:34:33 +0900
committerJuneyoung Lee <aqjune@gmail.com>2020-03-15 11:10:46 +0900
commit10aa7ea951e22dbd7f2ebdeb6410cfbc8a251eb1 (patch)
treef5e75f3984926afdb8576a4b5df0e8c811c70e0a /clang/lib/CodeGen/CodeGenFunction.h
parent049bb95c5c4185611f8240249208aef82773a79d (diff)
downloadllvm-10aa7ea951e22dbd7f2ebdeb6410cfbc8a251eb1.zip
llvm-10aa7ea951e22dbd7f2ebdeb6410cfbc8a251eb1.tar.gz
llvm-10aa7ea951e22dbd7f2ebdeb6410cfbc8a251eb1.tar.bz2
[CodeGenPrepare] Freeze condition when transforming select to br
Summary: This is a simple fix for CodeGenPrepare that freezes branch condition when transforming select to branch. If it is not freezed, instsimplify or the later pipeline can potentially exploit undefined behavior. The diff shows optimized form becase D75859 and D76048 already made a few changes to CodeGenPrepare for optimizing freeze(cmp). Reviewers: jdoerfert, spatel, lebedev.ri, efriedma Reviewed By: lebedev.ri Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D76179
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
0 files changed, 0 insertions, 0 deletions