diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2018-04-12 12:04:57 +0000 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2018-04-12 12:04:57 +0000 |
commit | 53271ba1d2255a72541b89fc119597ea545debb4 (patch) | |
tree | 5fece33eb5fc57ea68c2b8d968e7dedd6fd7fd40 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 650234ba36b57a782e844f05f18e2ec58b18c6b7 (diff) | |
download | bcm5719-llvm-53271ba1d2255a72541b89fc119597ea545debb4.tar.gz bcm5719-llvm-53271ba1d2255a72541b89fc119597ea545debb4.zip |
[InstCombine][NFC]: Add tests: foldSelectICmpAndAnd(): and is commutative
Summary:
The fold added in D45108 did not account for the fact that
the and instruction is commutative, and if the mask is a variable,
the mask variable and the fold variable may be swapped.
I have noticed this by accident when looking into [[ https://bugs.llvm.org/show_bug.cgi?id=6773 | PR6773 ]]
Reviewers: spatel, craig.topper
Reviewed By: spatel
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D45538
llvm-svn: 329901
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions