[X86] In shrinkAndImmediate, place the new constant into the topological sort.
authorCraig Topper <craig.topper@sifive.com>
Tue, 26 Jan 2021 19:28:25 +0000 (11:28 -0800)
committerCraig Topper <craig.topper@sifive.com>
Tue, 26 Jan 2021 21:18:04 +0000 (13:18 -0800)
commit74784a5aa47bb8967e5868831e359fa631abe465
tree60426711c2a9ffaf7997f30da71cf210a336bfaf
parent63273fc41fccf11962ce6ec4df91fee703e5ab57
[X86] In shrinkAndImmediate, place the new constant into the topological sort.

Revert the change to use APInt::isSignedIntN from
5ff5cf8e057782e3e648ecf5ccf1d9990b53ee90.

Its clear that the games we were playing to avoid the topological
sort aren't working. So just fix it once and for all.

Fixes PR48888.
llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
llvm/test/CodeGen/X86/pr48458.ll
llvm/test/CodeGen/X86/pr48888.ll [new file with mode: 0644]