Skip to content

Commit

Permalink
Integrate LLVM at llvm/llvm-project@3a56b5a27d71
Browse files Browse the repository at this point in the history
Updates LLVM usage to match
[3a56b5a27d71](llvm/llvm-project@3a56b5a27d71)

PiperOrigin-RevId: 613925333
  • Loading branch information
tensorflower-gardener authored and TensorFlow MLIR Team committed Mar 8, 2024
1 parent 798db7f commit 74b10e3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ http_archive(
],
)

LLVM_COMMIT = "e946b5a87b2db307da076093d0a9a72ecb4ec089"
LLVM_COMMIT = "3a56b5a27d711aaa141c354706638bd94f7460a3"

LLVM_SHA256 = "7528e725bd118fec655f378efea2abaec032309fecc04a7ea052fd63e68c4dc8"
LLVM_SHA256 = "92154e3d2a9d9748be6d975ade7f84bc561d01a4a36e0096b3555f9b8f1abab0"

http_archive(
name = "llvm-raw",
Expand Down
2 changes: 1 addition & 1 deletion build_tools/llvm_version.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
e946b5a87b2db307da076093d0a9a72ecb4ec089
3a56b5a27d711aaa141c354706638bd94f7460a3

2 changes: 1 addition & 1 deletion stablehlo/build_tools/llvm_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
e946b5a87b2db307da076093d0a9a72ecb4ec089
3a56b5a27d711aaa141c354706638bd94f7460a3
6 changes: 3 additions & 3 deletions stablehlo/stablehlo/transforms/StablehloRefineShapes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ LogicalResult refineReturnTypes(PatternRewriter& rewriter, Operation* op,
if (failed(refineValues(rewriter, op, op->getResults(), types)))
return failure();

// This `replaceOpWithIf` call doesn't actually change the IR, but
// This `replaceUsesWithIf` call doesn't actually change the IR, but
// it does ask the rewriter to visit all the users of this op. There is no
// upstream API to achieve this directly, but if it's introduced in the
// future, we could use it here.
rewriter.replaceOpWithIf(op, op->getResults(),
[](OpOperand& use) { return false; });
rewriter.replaceUsesWithIf(op, op->getResults(),
[](OpOperand& use) { return false; });
return success();
}

Expand Down

0 comments on commit 74b10e3

Please sign in to comment.