aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorWilliam S. Moses <gh@wsmoses.com>2022-01-11 15:39:18 -0500
committerWilliam S. Moses <gh@wsmoses.com>2022-01-11 18:34:04 -0500
commit97567bde5baaf87c0ac71cfc114dad56442b85d3 (patch)
tree4901c6052a2edceeed442c72e747450d61c18757 /clang/lib/CodeGen/CodeGenFunction.cpp
parentff11cd95501931e499a1ead748e8857f40ba5a4d (diff)
downloadllvm-97567bde5baaf87c0ac71cfc114dad56442b85d3.zip
llvm-97567bde5baaf87c0ac71cfc114dad56442b85d3.tar.gz
llvm-97567bde5baaf87c0ac71cfc114dad56442b85d3.tar.bz2
[MLIR][SCF] Canonicalize while statement whose cmp condition is recomputed in the after region
Given a while loop whose condition is given by a cmp, don't recomputed the comparison (or its inverse) in the after region, instead use a constant since the original condition must be true if we branched to the after region. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D117047
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions