hanchenye-llvm-project/llvm
Juneyoung Lee 6ad63606ea [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 frozen, 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
2020-03-16 12:46:20 +09:00
..
benchmarks
bindings Add an SDK attribute to DICompileUnit 2020-03-11 14:14:06 -07:00
cmake [TypeSize] Allow returning scalable size in implicit conversion to uint64_t 2020-03-15 13:48:49 +00:00
docs Add support for SHA256 source file checksums in debug info 2020-03-12 16:32:05 -07:00
examples Revert "[ORC] Enable JITEventListeners in the RTDyldObjectLinkingLayer." 2020-03-15 15:35:08 -07:00
include Revert "[ORC] Enable JITEventListeners in the RTDyldObjectLinkingLayer." 2020-03-15 15:35:08 -07:00
lib [CodeGenPrepare] Freeze condition when transforming select to br 2020-03-16 12:46:20 +09:00
projects
resources
runtimes [runtimes] When COMPILER_RT is enabled, consider SANITIZER prefixes 2020-03-11 14:22:20 -07:00
test [CodeGenPrepare] Freeze condition when transforming select to br 2020-03-16 12:46:20 +09:00
tools [llvm-objdump] Require long options to use double-dash --long-option 2020-03-15 18:01:11 -07:00
unittests [AssumeBundles] filter usefull attriutes to preserve 2020-03-13 17:35:47 +01:00
utils [gn build] don't repeat arm header targets twice. no behavior change. 2020-03-15 18:20:26 -04:00
.clang-format
.clang-tidy
.gitattributes
.gitignore
CMakeLists.txt [TypeSize] Allow returning scalable size in implicit conversion to uint64_t 2020-03-15 13:48:49 +00:00
CODE_OWNERS.TXT Remove myself from CODE_OWNERS. 2020-02-25 11:59:29 +00:00
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt Test commit. 2020-03-14 18:08:26 -07:00
RELEASE_TESTERS.TXT
configure
llvm.spec.in

README.txt

The LLVM Compiler Infrastructure
================================

This directory and its subdirectories contain source code for LLVM,
a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.