Go to file
Dimitry Andric 6a482a73d6 Only attempt to detect AVG if SSE2 is available
Summary:
In PR29973 Sanjay Patel reported an assertion failure when a certain
loop was optimized, for a target without SSE2 support.  It turned out
this was because of the AVG pattern detection introduced in rL253952.

Prevent the assertion failure by bailing out early in
`detectAVGPattern()`, if the target does not support SSE2.

Also add a minimized test case.

Reviewers: congh, eli.friedman, spatel

Subscribers: emaste, llvm-commits

Differential Revision: http://reviews.llvm.org/D20905

llvm-svn: 271548
2016-06-02 17:30:49 +00:00
clang [docs] Add a limitations section to SourceBasedCodeCoverage.rst 2016-06-02 17:19:45 +00:00
clang-tools-extra Fix uninitialized memory access when the token 'const' is not present in 2016-06-01 20:37:23 +00:00
compiler-rt [profile] Add end-end test of vp for inline virtual functions 2016-06-02 16:24:21 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc math: Use single precision fmax in sp path 2016-05-17 19:44:01 +00:00
libcxx Add not_fn test for throwing operator! 2016-06-02 08:37:00 +00:00
libcxxabi Partially revert r270816: build with -fvisibility=hidden. 2016-06-02 08:14:28 +00:00
libunwind Attempt to fix libunwind build 2016-06-02 01:50:10 +00:00
lld Simplify mask computation. 2016-06-02 16:00:25 +00:00
lldb LLDB needs to be able to handle DW_AT_GNU_dwo_name that are relative to the DW_AT_comp_dir when using -gmodules with DWARF in .o files on darwin. 2016-06-02 17:22:42 +00:00
llgo [llgo] llgoi: separate evaluation from printing 2016-04-25 01:18:20 +00:00
llvm Only attempt to detect AVG if SSE2 is available 2016-06-02 17:30:49 +00:00
openmp Fine tuning of TC* macros - small followup 2016-06-01 09:59:26 +00:00
polly Temporarily promote values to i64 again 2016-06-02 17:09:22 +00:00