OSDN Git Service

[InstCombine] Provide more test cases for cast-folding [NFC]
authorTobias Grosser <tobias@grosser.es>
Wed, 20 Jul 2016 11:24:27 +0000 (11:24 +0000)
committerTobias Grosser <tobias@grosser.es>
Wed, 20 Jul 2016 11:24:27 +0000 (11:24 +0000)
commit90e252f6f76fbf533176e34d906a1b6ee598733a
treeb38781882eb766cdc02e634106318fa1f0c15c8f
parent002e4b563527438efb4533d503031dc440bad539
[InstCombine] Provide more test cases for cast-folding [NFC]

Summary: In r275989 we enabled the folding of `logic(cast(icmp), cast(icmp))` to `cast(logic(icmp, icmp))`. Here we add more test cases to assure this folding works for all logical operations `and`/`or`/`xor`.

Reviewers: grosser

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D22561

Contributed-by: Matthias Reisinger
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276105 91177308-0d34-0410-b5e6-96231b3b80d8
test/Transforms/InstCombine/zext.ll