aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorGuozhi Wei <carrot@google.com>2016-05-31 20:41:19 +0000
committerGuozhi Wei <carrot@google.com>2016-05-31 20:41:19 +0000
commitb994f4cdbcb628f16698015d4a345744a02910c7 (patch)
tree3b377e70dc942771df2d451e07f705565f618527 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent9acb109930dd2584438f0d985a964ac3924faf0e (diff)
downloadllvm-b994f4cdbcb628f16698015d4a345744a02910c7.zip
llvm-b994f4cdbcb628f16698015d4a345744a02910c7.tar.gz
llvm-b994f4cdbcb628f16698015d4a345744a02910c7.tar.bz2
[SLP] Pass in correct alignment when query memory access cost
This patch fixes bug https://llvm.org/bugs/show_bug.cgi?id=27897. When query memory access cost, current SLP always passes in alignment value of 1 (unaligned), so it gets a very high cost of scalar memory access, and wrongly vectorize memory loads in the test case. It can be fixed by simply giving correct alignment. llvm-svn: 271333
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions