mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-25 17:20:48 +00:00
Fix a typo in ValueTracking that's causing instcombine to delete needed shift instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98416 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -779,7 +779,7 @@ unsigned llvm::ComputeNumSignBits(Value *V, const TargetData *TD,
|
||||
for (unsigned i = 1, e = PN->getNumIncomingValues(); i != e; ++i) {
|
||||
if (Tmp == 1) return Tmp;
|
||||
Tmp = std::min(Tmp,
|
||||
ComputeNumSignBits(PN->getIncomingValue(1), TD, Depth+1));
|
||||
ComputeNumSignBits(PN->getIncomingValue(i), TD, Depth+1));
|
||||
}
|
||||
return Tmp;
|
||||
}
|
||||
|
Reference in New Issue
Block a user