Also adds some more test coverage of cases where the
canonicalizeClampLike transaction should not apply.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Time | Test | |
---|---|---|
60,340 ms | x64 debian > lld.COFF::incremental.test |
Event Timeline
Feedback in D119690 is that we should have a few more tests to cover other predicate combinations.
llvm/test/Transforms/InstCombine/canonicalize-clamp-like-pattern-between-negative-and-positive-thresholds.ll | ||
---|---|---|
201 | I omitted the constant offset on x (add i32 %x, C0) in these tests because other transformations that these tests aren't trying to exercise would rewrite them. Happy to add them if preferred - it'd just mean that changes to those other transformations would cause churn in these tests. |
Remove non-strict comparison tests.
These do not add any real coverage, as any interesting comparisons
against constants will have been canonicalized to use strict predicates
beforehand.
LGTM with one minor
llvm/test/Transforms/InstCombine/canonicalize-clamp-like-pattern-between-negative-and-positive-thresholds.ll | ||
---|---|---|
190 | (trivial) Move the FIXME above the define |
Update description to clarify that this change only adds a single test triggering PR53252.
(trivial) Move the FIXME above the define