diff options
author | Kyle Butt <kyle+llvm@iteratee.net> | 2016-09-02 18:29:26 +0000 |
---|---|---|
committer | Kyle Butt <kyle+llvm@iteratee.net> | 2016-09-02 18:29:26 +0000 |
commit | 8699921c4b7a18c5809b38b45a3ac618826c6bf8 (patch) | |
tree | 1c75c53860b3d347f2f2a7e636068df1e32fcabb /llvm/lib/CodeGen/IfConversion.cpp | |
parent | 92f8935e63f0e5f3820533a9316bc651312b3208 (diff) | |
download | llvm-8699921c4b7a18c5809b38b45a3ac618826c6bf8.zip llvm-8699921c4b7a18c5809b38b45a3ac618826c6bf8.tar.gz llvm-8699921c4b7a18c5809b38b45a3ac618826c6bf8.tar.bz2 |
IfConversion: Fix bug introduced by rescanning diamonds.
Passing the wrong values for predicate-clobbering. Simple to miss.
Added an assert to make this easier to catch in the future.
llvm-svn: 280517
Diffstat (limited to 'llvm/lib/CodeGen/IfConversion.cpp')
-rw-r--r-- | llvm/lib/CodeGen/IfConversion.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/IfConversion.cpp b/llvm/lib/CodeGen/IfConversion.cpp index 76b4f34..3f74ff8 100644 --- a/llvm/lib/CodeGen/IfConversion.cpp +++ b/llvm/lib/CodeGen/IfConversion.cpp @@ -1982,7 +1982,7 @@ bool IfConverter::IfConvertDiamond(BBInfo &BBI, IfcvtKind Kind, if (!IfConvertDiamondCommon( BBI, TrueBBI, FalseBBI, NumDups1, NumDups2, - TrueBBI.ClobbersPred, FalseBBI.ClobbersPred, + TClobbersPred, FClobbersPred, /* RemoveBranch */ TrueBBI.IsBrAnalyzable, /* MergeAddEdges */ TailBB == nullptr)) return false; |