HomePhabricator

[pstl] A fix for move placement-new (and destroy) allocated objects from raw…

Authored by MikeDvorskiy on Mar 10 2020, 9:09 AM.

Description

[pstl] A fix for move placement-new (and destroy) allocated objects from raw memory.

https://reviews.llvm.org/D74123

The fix affects follow algorithms:
remove_if, unique, rotate, inplace_merge, partial_sort_copy, set_union, set_intersection, set_difference, set_symmetric_difference.

For "is_trivial" types there are no problems with "creating objects/clean-up"
For non-trivial types the algo results are also correct, but possible incorrect copying/moving "operator=" calls "by raw memory" within one of mentioned algo or incorrect destructor calls in the end of algo.

Details

Committed
MikeDvorskiyMay 18 2020, 7:00 AM
Parents
rG03092f2fa7b4: [mlir] Add BoolArrayAttr in Tablegen + Builder support
Branches
Unknown
Tags
Unknown