diff options
author | Uday Bondhugula <uday@polymagelabs.com> | 2022-07-30 07:09:02 +0530 |
---|---|---|
committer | Uday Bondhugula <uday@polymagelabs.com> | 2022-07-30 07:14:54 +0530 |
commit | 995e9d84f8f90dd237871d15cf7237866902e5b2 (patch) | |
tree | 1e601fa6984c5577f648ab097e6739811e2a2332 /clang/unittests/Frontend/CompilerInvocationTest.cpp | |
parent | b17c89d1511f14b864ee680577a7b68363d672f9 (diff) | |
download | llvm-995e9d84f8f90dd237871d15cf7237866902e5b2.zip llvm-995e9d84f8f90dd237871d15cf7237866902e5b2.tar.gz llvm-995e9d84f8f90dd237871d15cf7237866902e5b2.tar.bz2 |
[MLIR] Fix getCommonBlock utility in affine analysis
Fix the hardcoded check for `FuncOp` in `getCommonBlock` utility: the
check should have been for an op that starts an affine scope. The
incorrect block returned in turn causes dependence analysis to function
incorrectly.
This change allows affine store-load forwarding to work correctly inside
any ops that start an affine scope.
Reviewed By: ftynse, dcaballe
Differential Revision: https://reviews.llvm.org/D130749
Diffstat (limited to 'clang/unittests/Frontend/CompilerInvocationTest.cpp')
0 files changed, 0 insertions, 0 deletions