[NFC]Fix 2 logic dead code
authorWang, Xin10 <xin10.wang@intel.com>
Fri, 28 Apr 2023 07:02:30 +0000 (03:02 -0400)
committerWang, Xin10 <xin10.wang@intel.com>
Fri, 28 Apr 2023 07:02:59 +0000 (03:02 -0400)
commit9c1e4ee6902a8a827dcc9132c3f742a28238dd20
tree88df926353394edb260079fd960af292a9808c52
parent4cd1b67491df2fc927057feb567db8e418e28d80
[NFC]Fix 2 logic dead code

First, in CodeGenPrepare.cpp, line 6891, the VectorCond will always be false
because if not function will return at 6888.
Second, in SelectionDAGBuilder.cpp, line 5443, getSExtValue() will return
value as int type, but now we use unsigned Val to maintain it, which make the
if condition at 5452 meaningless.

Reviewed By: skan

Differential Revision: https://reviews.llvm.org/D149033
llvm/lib/CodeGen/CodeGenPrepare.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp