Skip to content

[NFC] IREEInput/Util: Simplify loops with llvm range helpers - #14334

Merged
ezhulenev merged 1 commit into
iree-org:mainfrom
ezhulenev:modernize-util-1
Jul 9, 2023
Merged

ezhulenev merged 1 commit into
iree-org:mainfrom
ezhulenev:modernize-util-1

Conversation

@ezhulenev

Copy link
Copy Markdown
Member

No description provided.

@ezhulenev
ezhulenev requested a review from jpienaar July 7, 2023 17:38
@ezhulenev
ezhulenev enabled auto-merge (squash) July 7, 2023 17:39
}
return false;
return llvm::any_of(value.getUses(), [](auto &use) {
if (auto tiedOp = dyn_cast<TiedOpInterface>(use.getOwner())) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dyn_cast_if_present ? (I think if this is block arg then we'd be operating on nullptr with dyn_cast)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uses are always ops so it should be safe

@ScottTodd

Copy link
Copy Markdown
Member

We had an issue with CI triggering. Can you sync this past 68350cb to run presubmits?

@ezhulenev
ezhulenev merged commit ac34d7b into iree-org:main Jul 9, 2023
stellaraccident pushed a commit that referenced this pull request Sep 24, 2023
* iree: ac34d7b [NFC] IREEInput/Util: Simplify loops with llvm range
helpers (#14334) (Sun Jul 9 05:59:00 2023 +0000)
* xla: fab371676 Update TFRT dependency to use revision
http://github.com/tensorflow/runtime/commit/dfcdbb6ef3714e8818765ee4309fb23b76c22f98.
(Sat Jul 8 00:06:05 2023 -0700)
* jax: 1795b12a9 Merge pull request #16654 from
jakevdp:ml-dtypes-version (Fri Jul 7 13:13:55 2023 -0700)
stellaraccident pushed a commit that referenced this pull request Sep 24, 2023
* iree: ac34d7b [NFC] IREEInput/Util: Simplify loops with llvm range
helpers (#14334) (Sun Jul 9 05:59:00 2023 +0000)
* xla: 72c86ba00 Update TFRT dependency to use revision
http://github.com/tensorflow/runtime/commit/46664e9fe40d2a204bbc8b629a778cb8032fd8c1.
(Mon Jul 10 12:28:51 2023 -0700)
* jax: b19c63278 Merge pull request #16668 from
LenaMartens:check-cleanup (Mon Jul 10 09:41:50 2023 -0700)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants