[SDAG] add check to sext-of-setcc fold to bypass changing a legal op
authorSanjay Patel <spatel@rotateright.com>
Mon, 31 May 2021 12:53:09 +0000 (08:53 -0400)
committerSanjay Patel <spatel@rotateright.com>
Mon, 31 May 2021 12:58:11 +0000 (08:58 -0400)
commit63fe4cb08206fb973761b8e744bdd5d500c25b8b
tree6d08a880820383149488b3f034ac3b2d0e82f830
parent2fc05fdc156fab5a7a7ef1d5b7d217ffa766d86f
[SDAG] add check to sext-of-setcc fold to bypass changing a legal op

I accidentaly pushed a draft of D103280 that was discussed
during the review, but it was not supposed to be the final
version.

Rather than revert and recommit, I'm updating the existing
code. This way we have a record of the codegen diff that
would result if we decide to remove this predicate in the
future.
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/sext-vsetcc.ll