aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGClass.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2021-01-04 15:49:47 +0000
committerFlorian Hahn <flo@fhahn.com>2021-01-04 15:49:47 +0000
commited936aad7814404b3cc767d4515096f078dfcbb9 (patch)
tree5da36a6e5a08deef99a234b4da8b2734ffe947d4 /clang/lib/CodeGen/CGClass.cpp
parente9f401d8a261e747f5dfc9e297f12ab26e56893d (diff)
downloadllvm-ed936aad7814404b3cc767d4515096f078dfcbb9.zip
llvm-ed936aad7814404b3cc767d4515096f078dfcbb9.tar.gz
llvm-ed936aad7814404b3cc767d4515096f078dfcbb9.tar.bz2
[InterleavedAccess] Return correct 'modified' status.
Both tryReplaceExtracts and replaceBinOpShuffles may modify the IR, even if no interleaved loads are generated, but currently the pass pretends no changes were made. This patch updates the pass to return true if either of the functions made any changes. In case of tryReplaceExtracts, changes are made if there are any Extracts and true is returned. `replaceBinOpShuffles` always makes changes if BinOpShuffles is not empty. It also always returned true, so I went ahead and change it to just `replaceBinOpShuffles`. Fixes PR48208. Reviewed By: SjoerdMeijer Differential Revision: https://reviews.llvm.org/D93997
Diffstat (limited to 'clang/lib/CodeGen/CGClass.cpp')
0 files changed, 0 insertions, 0 deletions