mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
For PR950:
This patch removes the SetCC instructions and replaces them with the ICmp and FCmp instructions. The SetCondInst instruction has been removed and been replaced with ICmpInst and FCmpInst. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32751 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -251,8 +251,8 @@ bool GlobalsModRef::AnalyzeUsesOfPointer(Value *V,
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
} else if (SetCondInst *SCI = dyn_cast<SetCondInst>(*UI)) {
|
||||
if (!isa<ConstantPointerNull>(SCI->getOperand(1)))
|
||||
} else if (ICmpInst *ICI = dyn_cast<ICmpInst>(*UI)) {
|
||||
if (!isa<ConstantPointerNull>(ICI->getOperand(1)))
|
||||
return true; // Allow comparison against null.
|
||||
} else if (FreeInst *F = dyn_cast<FreeInst>(*UI)) {
|
||||
Writers.push_back(F->getParent()->getParent());
|
||||
|
||||
Reference in New Issue
Block a user