[MLIR][Bufferization] Assume alias if no information is available
authorlorenzo chelini <l.chelini@icloud.com>
Wed, 15 Jun 2022 15:20:49 +0000 (17:20 +0200)
committerlorenzo chelini <l.chelini@icloud.com>
Wed, 15 Jun 2022 16:41:51 +0000 (18:41 +0200)
- Post (minor) fix after: https://reviews.llvm.org/D127301

Reviewed By: springerm

Differential Revision: https://reviews.llvm.org/D127868

mlir/lib/Dialect/Bufferization/IR/BufferizableOpInterface.cpp

index 467c018..cd3d406 100644 (file)
@@ -393,7 +393,7 @@ bool AnalysisState::areEquivalentBufferizedValues(Value v1, Value v2) const {
 bool AnalysisState::areAliasingBufferizedValues(Value v1, Value v2) const {
   // In the absence of analysis information, we do not know if the values may be
   // aliasing. The conservative answer is "true".
-  return false;
+  return true;
 }
 
 bool AnalysisState::hasUndefinedContents(OpOperand *opOperand) const {