[PATCH] D44416: [InstCombine] [NFC] Add tests for peeking through unsigned FP casts for zero-equality compares (PR36682)

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 14 07:09:08 PDT 2018


lebedev.ri updated this revision to Diff 138345.
lebedev.ri added a comment.

Reduced amounts of test patterns, while improving test coverage:

- one single input type - `i32`
- still three sizes it's cast to - `half`/`i16`, `float`/`i32`, `double`/`i64` - so we do have cast/upcast/downcast cases
- scalar, vector case with `undef` element, and added vector //without// `undef` Since the `<i32 0, i32 0>` is canonicalized to `zeroinitializer`, i did not add explicit test with `zeroinitializer`.

I could selectively manually prune some more testcases, if needed.


Repository:
  rL LLVM

https://reviews.llvm.org/D44416

Files:
  test/Transforms/InstCombine/cast-unsigned-icmp-eqcmp-0.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44416.138345.patch
Type: text/x-patch
Size: 9914 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180314/9e36559d/attachment-0001.bin>


More information about the llvm-commits mailing list