aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2020-07-10 09:45:02 +0100
committerFlorian Hahn <flo@fhahn.com>2020-07-10 10:37:12 +0100
commit264ab1e2c815728ede5d1fce257abbd04044cc27 (patch)
treeaec2a2d0e7c9c4d55d4ce7bfbd56ed2e29eedcfc /clang/lib/Frontend/CompilerInvocation.cpp
parentcf40db21af489e3e5bc1c39cea855cc068c4ce48 (diff)
downloadllvm-264ab1e2c815728ede5d1fce257abbd04044cc27.zip
llvm-264ab1e2c815728ede5d1fce257abbd04044cc27.tar.gz
llvm-264ab1e2c815728ede5d1fce257abbd04044cc27.tar.bz2
[LV] Pick vector loop body as insert point for SCEV expansion.
Currently the DomTree is not kept up to date for additional blocks generated in the vector loop, for example when vectorizing with predication. SCEVExpander relies on dominance checks when looking for existing instructions to re-use and in some cases that can lead to the expander picking instructions that do not actually dominate their insert point (e.g. as in PR46525). Unfortunately keeping the DT up-to-date is a bit tricky, because the CFG is only patched up after generating code for a block. For now, we can just use the vector loop header, as this ensures the inserted instructions dominate all uses in the vector loop. There should be no noticeable impact on the generated code, as other passes should sink those instructions, if profitable. Fixes PR46525. Reviewers: Ayal, gilr, mkazantsev, dmgreen Reviewed By: dmgreen Differential Revision: https://reviews.llvm.org/D83288
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions