summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/CodeGenPrepare/builtin-condition.ll
Commit message (Collapse)AuthorAgeFilesLines
* Add address space mangling to lifetime intrinsicsMatt Arsenault2017-04-101-10/+10
| | | | | | In preparation for allowing allocas to have non-0 addrspace. llvm-svn: 299876
* [Analysis] Centralize objectsize lowering logic.George Burgess IV2016-12-201-1/+34
| | | | | | | | | We're currently doing nearly the same thing for @llvm.objectsize in three different places: two of them are missing checks for overflow, and one of them could subtly break if InstCombine gets much smarter about removing alloc sites. Seems like a good idea to not do that. llvm-svn: 290214
* Calculate __builtin_object_size when pointer depends on a conditionPetar Jovanovic2016-04-131-0/+90
This patch fixes calculating of builtin_object_size if it depends on a condition. Before this patch compiler did not know how to calculate the object size when it finds a condition that cannot be eliminated. This patch enables calculating of builtin_object_size even in case when condition cannot be eliminated by choosing minimum or maximum value as a result from condition. Choosing minimum or maximum value from condition is based on the second argument of __builtin_object_size function. Patch by Strahinja Petrovic. Differential Revision: http://reviews.llvm.org/D18438 llvm-svn: 266193
OpenPOWER on IntegriCloud