1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 20:12:56 +02:00
llvm-mirror/lib/Transforms
Evgeniy Stepanov cabb944249 [safestack] Rewrite isAllocaSafe using SCEV.
Use ScalarEvolution to calculate memory access bounds.
Handle function calls based on readnone/nocapture attributes.
Handle memory intrinsics with constant size.

This change improves both recall and precision of IsAllocaSafe.
See the new tests (ex. BitCastWide) for the kind of code that was wrongly
classified as safe.

SCEV efficiency seems to be limited by the fact the SafeStack runs late
(in CodeGenPrepare), and many loops are unrolled or otherwise not in LCSSA.

llvm-svn: 253083
2015-11-13 21:21:42 +00:00
..
Hello Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
InstCombine [InstCombine] Add trivial folding (bitreverse (bitreverse x)) -> x 2015-11-12 12:39:41 +00:00
Instrumentation [safestack] Rewrite isAllocaSafe using SCEV. 2015-11-13 21:21:42 +00:00
IPO [GlobalOpt] Make sure all debug lines end with '\n' 2015-11-13 11:05:13 +00:00
ObjCARC ObjCARC: Remove implicit ilist iterator conversions, NFC 2015-10-19 23:20:14 +00:00
Scalar Add a comment that should have made my last commit. 2015-11-13 19:13:40 +00:00
Utils [SimplifyLibCalls] Make a function shorter. NFC. 2015-11-12 23:39:00 +00:00
Vectorize [SLP] Enable -slp-vectorize-hor by default. 2015-11-11 15:03:46 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile