[X86] combineXor - limit fold to non-opaque constants (PR50254)
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 7 May 2021 15:39:11 +0000 (16:39 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 7 May 2021 15:39:24 +0000 (16:39 +0100)
commitf744723f7538934e0beb5d8a2267afeb86345986
tree2fa2a9676e13c5d3a1269ca0660c8bdd6d59db4d
parent2819009b5aa9725aebba63e8722e31943a7fb36f
[X86] combineXor - limit fold to non-opaque constants (PR50254)

Ensure we don't try to fold when one might be an opaque constant - the constant fold will fail and then the reverse fold will happen in DAGCombine.....
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/pr50254.ll [new file with mode: 0644]