[llvm] r284018 - BranchRelaxation: Unique live ins when creating block
Sanjoy Das via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 15 15:00:30 PDT 2016
Is this NFC? If not, does this need a test case?
-- Sanjoy
Matt Arsenault via llvm-commits wrote:
> Author: arsenm
> Date: Wed Oct 12 10:32:04 2016
> New Revision: 284018
>
> URL: http://llvm.org/viewvc/llvm-project?rev=284018&view=rev
> Log:
> BranchRelaxation: Unique live ins when creating block
>
> Modified:
> llvm/trunk/lib/CodeGen/BranchRelaxation.cpp
>
> Modified: llvm/trunk/lib/CodeGen/BranchRelaxation.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/BranchRelaxation.cpp?rev=284018&r1=284017&r2=284018&view=diff
> ==============================================================================
> --- llvm/trunk/lib/CodeGen/BranchRelaxation.cpp (original)
> +++ llvm/trunk/lib/CodeGen/BranchRelaxation.cpp Wed Oct 12 10:32:04 2016
> @@ -379,6 +379,7 @@ bool BranchRelaxation::fixupUnconditiona
> BranchBB->addLiveIn(LiveIn);
> }
>
> + BranchBB->sortUniqueLiveIns();
> BranchBB->addSuccessor(DestBB);
> MBB->replaceSuccessor(DestBB, BranchBB);
> }
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list