Remove the additional constant which requires an extra register for statepoint lowering.
authorZuojian Lin <manjian2006@gmail.com>
Sun, 5 Apr 2020 15:21:37 +0000 (11:21 -0400)
committerMatt Arsenault <arsenm2@gmail.com>
Sun, 5 Apr 2020 15:22:09 +0000 (11:22 -0400)
commita58c8a78660896bfe7d5e0ca18b9ab7458dea92b
treec651ee3b526b03c57c1aa02799e5967677a38990
parent8aadb442d1db65fc01d85059ebb86929ddbf771b
Remove the additional constant which requires an extra register for statepoint lowering.

The newly-created constant zero will need an extra register to hold it
in the current statepoint lowering implementation. Remove it if there
exists one.
llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
llvm/test/CodeGen/X86/statepoint-no-extra-const.ll [new file with mode: 0644]