[X86] Don't attempt to fold sub(C1, xor(X, C2)) with opaque constants
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 11 Mar 2021 11:56:58 +0000 (11:56 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 11 Mar 2021 12:06:40 +0000 (12:06 +0000)
commit77394c12a48822bb7a9183408f922d90c1d563cd
tree7c9361de385b3690cc3675cb66cd25d83b6a1828
parent25a20b8aa68e6fa6129f1ce4d0125365f399b59d
[X86] Don't attempt to fold sub(C1, xor(X, C2)) with opaque constants

Fixes PR49451
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/pr49451.ll [new file with mode: 0644]