3 Commits

Author SHA1 Message Date
Piotr Sobczak
7322d35476 [ValueTracking] Fix computeKnownFPClass with canonicalize
Update code that assumes llvm.canonicalize only handles scalars,
by adding a call to getScalarType().
This is fine, as the intrinsic is trivially vectorizable.

Introduced in D147870, and uncovered by D148065.

Differential Revision: https://reviews.llvm.org/D150556
2023-05-15 14:50:35 +02:00
Matt Arsenault
6463961941 InstCombine: Fold some identities for canonicalize
Equality is directly stated as true in the LangRef,
and I believe this works for every compare type.
2022-11-22 21:42:44 -05:00
Matt Arsenault
9ba3b61c15 InstCombine: Add baseline tests for canonicalize identities 2022-11-22 21:42:44 -05:00