[TargetLowering] Simplify some code in SimplifySetCC that tries to handle SIGN_EXTEND...
authorCraig Topper <craig.topper@sifive.com>
Fri, 22 Jan 2021 07:21:05 +0000 (23:21 -0800)
committerCraig Topper <craig.topper@sifive.com>
Fri, 22 Jan 2021 07:56:37 +0000 (23:56 -0800)
commit5660dc5968ec6dacba1917b741d660c582f69e9e
tree6b5ce55ca2028b7eda22772ca6a21d8c76e84fa8
parent541d98efa222b00e16c67348810898c2fa11f398
[TargetLowering] Simplify some code in SimplifySetCC that tries to handle SIGN_EXTEND_INREG operand types that should never happen. NFCI

There was code to handle the first operand being different than
the result type. And code to handle first operand having the
same type as the type to extend from. This should never happen
for a correctly formed SIGN_EXTEND_INREG. I've replace the
code with asserts.

I also noticed we created the same APInt twice so I've reused it.
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp