CppCon 2018: Gabor Horvath “Dealing with aliasing using contracts”
2,771 views · Published 11 November 2018 · 37:17 · Indexed 30 September 2026
Channel: CppCon · 2018 · Education
http://CppCon.org — Presentation Slides, PDFs, Source Code and other presenter materials are available at: https://github.com/CppCon/CppCon2018 — Telling the compiler when aliasing can or cannot happen is an important problem to solve. Lots of the crucial compiler optimizations such as load and store elimination, and less crucial such as vectorization rely on alias analysis. I will showcase some examples where alias analysis is playing an important role to get decent performance. Unfortunately, there is no standard way in C++ to give hints to the compiler about aliasing. There is the C restrict keyword which is supported by some compilers but it has its own shortcomings. In this talk, I will show some of the past approaches to move restrict keyword to C++ and propose a new solution which is based on contracts. I will also show some basic tricks how to use type based alias analysis and value types to help the compiler reason about aliasing until the related new features being accepted into the language. — Gabor Horvath, Eotvos Lorand University PhD Student Gabor started a Ph.D. in 2016. He is a contributor to research projects related to static analysis since 2012. He is a clang contributor, participated in Google Summer of Code twice as a student and twice as a mentor, interned for Apple and Microsoft. He teaches C++ and compiler construction to undergrads at Eotvos Lorand University. — Videos Filmed & Edited by Bash Films: http://www.BashFilms.com Work at Hudson River Trading (HRT): https://tinyurl.com/safxfctf --- Videos Filmed & Edited by Bash Films: http://www.BashFilms.com
More from this channel
-
1:03:17
Elevate Your Code to Modern C++11 with Automated Tooling - Peter Sommerlad [ CppCon 2014 ]
-
40:21
CppCon 2014: Jared Hoberock "Parallelizing the Standard Algorithms Library"
-
1:08:02
CppCon 2014: Mauricio Carneiro "Gamgee: A C++14 library for genomics data processing and analysis"
-
50:09
CppCon 2015: Joel Falcou PART 3 “Expression Templates: Past, Present, Future”
-
51:27
Simple, Extensible Pattern Matching in C++14 - John R. Bandela [ CppCon 2015 ]
-
44:35
CppCon 2015: Jens Weller “An Overview on Encryption in C++"
-
6:30
CppCon 2015: Reid Kleckner "Clang on Windows: a status update"
-
8:41
Introducing brigand - Edouard Alligand & Joel Falcou [ CppCon 2015 ]