[X86] Don't add DELETED_NODES to DAG combine worklist after calling SimplifyDemandedB...
authorCraig Topper <craig.topper@gmail.com>
Sun, 1 Mar 2020 08:01:38 +0000 (00:01 -0800)
committerCraig Topper <craig.topper@gmail.com>
Sun, 1 Mar 2020 08:06:32 +0000 (00:06 -0800)
commit2f4f8fcf64c67ee327e19b74a82a2330cfb32312
tree1a91a81e5704e26fa64933f6747c40aec278077f
parent9569a1472ee7fee37f7f991d34634c5d8d1f3559
[X86] Don't add DELETED_NODES to DAG combine worklist after calling SimplifyDemandedBits/SimplifyDemandedVectorElts.

These AddToWorklist calls were added in 84cd968f75bbd6e0fbabecc29d2c1090263adec7.
It's possible the SimplifyDemandedBits/SimplifyDemandedVectorElts
triggered CSE that deleted N. Detect that and avoid adding N
to the worklist.

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