Go to file
Dan Gohman 172c5d3451 Use range metadata instead of introducing selects.
When GlobalOpt has determined that a GlobalVariable only ever has two values,
it would convert the GlobalVariable to a boolean, and introduce SelectInsts
at every load, to choose between the two possible values. These SelectInsts
introduce overhead and other unpleasantness.

This patch makes GlobalOpt just add range metadata to loads from such
GlobalVariables instead. This enables the same main optimization (as seen in
test/Transforms/GlobalOpt/integer-bool.ll), without introducing selects.

The main downside is that it doesn't get the memory savings of shrinking such
GlobalVariables, but this is expected to be negligible.

llvm-svn: 204076
2014-03-17 19:57:04 +00:00
clang [C++11] Replacing CGFunctionInfo arg iterators with iterator_range arguments(). Updating all of the usages of the iterators with range-based for loops. 2014-03-17 18:10:01 +00:00
clang-tools-extra Use DiagnosticRenderer to convert clang diagnostics to clang-tidy ones. 2014-03-10 13:11:17 +00:00
compiler-rt [sanitizer] fix the deadlock detector build 2014-03-17 15:16:25 +00:00
debuginfo-tests Revert "xfail a test on darwin because some of the public buildbots are stuck on" 2014-03-11 23:49:31 +00:00
libclc Fix build since r202052 2014-02-24 21:31:56 +00:00
libcxx Remove Issue #2235 from the Chicago section. The resolution was approved in Bristol (and it is listed there), and then is was approved *again* in Chicago. Thanks to STL @ microsoft for the catch 2014-03-15 01:55:31 +00:00
libcxxabi 0 is a valid LSDA encoding and can be seen in statically linked 2014-03-11 23:43:43 +00:00
lld [PECOFF] Data type of SectionNumber is now unsigned (r203986). 2014-03-15 00:39:12 +00:00
lldb Correct copy-and-pasted comments for DetachOperation 2014-03-17 17:45:53 +00:00
llvm Use range metadata instead of introducing selects. 2014-03-17 19:57:04 +00:00
openmp Revert commit (testing commit hook). 2014-03-04 18:06:04 +00:00
polly (Make) Remove unused Makefiles 2014-03-14 18:25:31 +00:00