This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Arith] Canonicalize cmpi of extui/extsi
ClosedPublic

Authored by wsmoses on Feb 26 2022, 11:41 AM.

Details

Summary

Canonicalize cmpi(eq, ext a, ext b) and cmpi(ne, ext a, ext b)

Diff Detail

Event Timeline

wsmoses created this revision.Feb 26 2022, 11:41 AM
wsmoses requested review of this revision.Feb 26 2022, 11:41 AM
wsmoses updated this revision to Diff 411638.Feb 26 2022, 12:38 PM

Fix string literal split

ftynse accepted this revision.Mar 2 2022, 8:53 AM
ftynse added inline comments.
mlir/lib/Dialect/Arithmetic/IR/ArithmeticCanonicalization.td
119

Isn't type equality here guaranteed by cmpi semantics?

This revision is now accepted and ready to land.Mar 2 2022, 8:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 2 2022, 8:53 AM
wsmoses added inline comments.Mar 2 2022, 8:58 AM
mlir/lib/Dialect/Arithmetic/IR/ArithmeticCanonicalization.td
119

Not necessarily, since you could exti(i8 -> i32) == exti(i16 -> i32), the two inner types may not be equal.

This revision was landed with ongoing or failed builds.Mar 2 2022, 9:30 AM
This revision was automatically updated to reflect the committed changes.