aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/libclang/LibclangTest.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2015-12-01 19:08:39 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2015-12-01 19:08:39 +0000
commite830f5427bce45b462c927dc997b4e1c408a2f3e (patch)
treefd6c536dde877e2d997109f85bb6624910f84c1c /clang/unittests/libclang/LibclangTest.cpp
parenta6c4ce43df9f876bc7176c7d77636688568b132c (diff)
downloadllvm-e830f5427bce45b462c927dc997b4e1c408a2f3e.zip
llvm-e830f5427bce45b462c927dc997b4e1c408a2f3e.tar.gz
llvm-e830f5427bce45b462c927dc997b4e1c408a2f3e.tar.bz2
AMDGPU: Report extractelement as free in cost model
The cost for scalarized operations is computed as N * (scalar operation cost + 1 extractelement + 1 insertelement). This partially fixes inflating the cost of scalarized operations since every operation is scalarized and free. I don't think we want any cost asociated with scalarization, but for now insertelement is still counted. I'm not sure if we should pretend that insertelement is also free, or add a way to compute a custom scalarization cost. llvm-svn: 254438
Diffstat (limited to 'clang/unittests/libclang/LibclangTest.cpp')
0 files changed, 0 insertions, 0 deletions