diff options
Diffstat (limited to 'gnu/llvm/lib/CodeGen/MachineCopyPropagation.cpp')
| -rw-r--r-- | gnu/llvm/lib/CodeGen/MachineCopyPropagation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/llvm/lib/CodeGen/MachineCopyPropagation.cpp b/gnu/llvm/lib/CodeGen/MachineCopyPropagation.cpp index 8fdf39d54bd..92d043df26b 100644 --- a/gnu/llvm/lib/CodeGen/MachineCopyPropagation.cpp +++ b/gnu/llvm/lib/CodeGen/MachineCopyPropagation.cpp @@ -56,7 +56,7 @@ namespace { MachineFunctionProperties getRequiredProperties() const override { return MachineFunctionProperties().set( - MachineFunctionProperties::Property::AllVRegsAllocated); + MachineFunctionProperties::Property::NoVRegs); } private: @@ -245,7 +245,7 @@ void MachineCopyPropagation::CopyPropagateBlock(MachineBasicBlock &MBB) { // Remember source that's copied to Def. Once it's clobbered, then // it's no longer available for copy propagation. RegList &DestList = SrcMap[Src]; - if (std::find(DestList.begin(), DestList.end(), Def) == DestList.end()) + if (!is_contained(DestList, Def)) DestList.push_back(Def); continue; |
