diff options
| author | Philip Reames <listmail@philipreames.com> | 2016-01-07 04:15:31 +0000 |
|---|---|---|
| committer | Philip Reames <listmail@philipreames.com> | 2016-01-07 04:15:31 +0000 |
| commit | afdbcc6a84bda5e70649d1041caf6d876605ee77 (patch) | |
| tree | d5416316247082faad99608ca52ce69c475c6506 /llvm/lib/CodeGen | |
| parent | 08b9462540f7a647faa2d63264dc795d88763e4d (diff) | |
| download | bcm5719-llvm-afdbcc6a84bda5e70649d1041caf6d876605ee77.tar.gz bcm5719-llvm-afdbcc6a84bda5e70649d1041caf6d876605ee77.zip | |
[Statepoints] Add test cases around vectors and stablize test
Unlike my comment in 257022 said, it turns out we do handle constant vectors in the statepoint lowering, but only because SelectionDAG doesn't actually produce constants for them. Add a couple of tests which show this working.
Also, add a triple to the same test file to hopefully fix a failing bot.
It turns out we do han
llvm-svn: 257025
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp index 05363fc0596..02545a73065 100644 --- a/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp @@ -461,7 +461,9 @@ static void lowerIncomingStatepointValue(SDValue Incoming, // If the original value was a constant, make sure it gets recorded as // such in the stackmap. This is required so that the consumer can // parse any internal format to the deopt state. It also handles null - // pointers and other constant pointers in GC states + // pointers and other constant pointers in GC states. Note the constant + // vectors do not appear to actually hit this path and that anything larger + // than an i64 value (not type!) will fail asserts here. pushStackMapConstant(Ops, Builder, C->getSExtValue()); } else if (FrameIndexSDNode *FI = dyn_cast<FrameIndexSDNode>(Incoming)) { // This handles allocas as arguments to the statepoint (this is only |

