aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorUday Bondhugula <uday@polymagelabs.com>2020-03-17 10:34:55 +0530
committerUday Bondhugula <uday@polymagelabs.com>2020-03-20 07:49:49 +0530
commit0ddd04391d281b1d8679ff95ddfce79a61253250 (patch)
treee6b00d27099e7356d783d0e01a886f4b2b661052 /clang/lib/Frontend/CompilerInvocation.cpp
parent6ef1f3718f3c89d48362743c6f1a27390ce802c2 (diff)
downloadllvm-0ddd04391d281b1d8679ff95ddfce79a61253250.zip
llvm-0ddd04391d281b1d8679ff95ddfce79a61253250.tar.gz
llvm-0ddd04391d281b1d8679ff95ddfce79a61253250.tar.bz2
[MLIR] Fix op folding to not run pre-replace when not constant folding
OperationFolder::tryToFold was running the pre-replacement action even when there was no constant folding, i.e., when the operation was just being updated in place but was not going to be replaced. This led to nested ops being unnecessarily removed from the worklist and only being processed in the next outer iteration of the greedy pattern rewriter, which is also why this didn't affect the final output IR but only the convergence rate. It also led to an op's results' users to be unnecessarily added to the worklist. Signed-off-by: Uday Bondhugula <uday@polymagelabs.com> Differential Revision: https://reviews.llvm.org/D76268
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions