]> granicus.if.org Git - llvm/commit
[PEI] Remove required properties and use 'if' instead of std::function
authorReid Kleckner <rnk@google.com>
Fri, 6 Oct 2017 18:21:19 +0000 (18:21 +0000)
committerReid Kleckner <rnk@google.com>
Fri, 6 Oct 2017 18:21:19 +0000 (18:21 +0000)
commit5066e855699bbe94c0c2fefd7821021620441485
tree966d11caab050f79f82755dbe59f075e8032fe55
parent637eed4139c88faf309e5f58317b23158dc6e6f8
[PEI] Remove required properties and use 'if' instead of std::function

Summary:
After r303360, we initialize UsesCalleeSaves in runOnMachineFunction,
which runs after getRequiredProperties. UsesCalleeSaves was initialized
to 'false', so getRequiredProperties would always return an empty set.
We don't have a TargetMachine available early anymore after r303360.
Just removing the requirement of NoVRegs seems to make things work, so
let's do that.

Reviewers: thegameg, dschuff, MatzeB

Subscribers: hiraditya, llvm-commits

Differential Revision: https://reviews.llvm.org/D38597

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315089 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/PrologEpilogInserter.cpp