HomePhabricator

[test] Fix TargetParserTest runtime.

Description

[test] Fix TargetParserTest runtime.

r363780 fixes extreme memory growth by using a new std::vector every loop iteration, but causes runtime to go up (and occasionally timeout in certain situations) because of constructor cost every loop iteration. Fix this by moving the constructor back out, but clearing contents in the loop.

Also apply this to the AArch64 features test case, which seems to use the same pattern.

Details

Committed
rupprechtJun 19 2019, 11:03 AM
Parents
rL363850: [TargetLowering] SimplifyDemandedBits ZERO_EXTEND_VECTOR_INREG ->…
Branches
Unknown
Tags
Unknown