OSDN Git Service

[VectorCombine] add tests for scalarizing binop-with-constant; NFC
authorSanjay Patel <spatel@rotateright.com>
Sun, 31 May 2020 13:05:48 +0000 (09:05 -0400)
committerSanjay Patel <spatel@rotateright.com>
Sun, 31 May 2020 13:11:30 +0000 (09:11 -0400)
commite31f2a894a7bec0a64553d615ef40fa36134844e
treec1c7c2ef1658aa6499a3e5c449ee874bef17513e
parentf046326847076b50017b3d32db62c3511c478888
[VectorCombine] add tests for scalarizing binop-with-constant; NFC

Goes with proposal in D80885.

This is adapted from the InstCombine tests that were added for
D50992

But these should be adjusted further to provide more interesting
scenarios for x86-specific codegen. Eg, vector types/sizes will
have different costs depending on ISA attributes.

We also need to add tests that include a load of the scalar
variable and add tests that include extra uses of the insert
to further exercise the cost model.
llvm/test/Transforms/VectorCombine/X86/insert-binop-with-constant.ll [new file with mode: 0644]