mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-09 13:41:47 +00:00
[Float2Int] Remove return of ConstantRange from seen method. Nothing uses it so it just creates and discards a ConstantRange object for no reason.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302193 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3e84c2c941
commit
7a94f0ce91
@ -31,7 +31,7 @@ public:
|
||||
|
||||
private:
|
||||
void findRoots(Function &F, SmallPtrSet<Instruction *, 8> &Roots);
|
||||
ConstantRange seen(Instruction *I, ConstantRange R);
|
||||
void seen(Instruction *I, ConstantRange R);
|
||||
ConstantRange badRange();
|
||||
ConstantRange unknownRange();
|
||||
ConstantRange validateRange(ConstantRange R);
|
||||
|
@ -137,13 +137,12 @@ void Float2IntPass::findRoots(Function &F, SmallPtrSet<Instruction*,8> &Roots) {
|
||||
}
|
||||
|
||||
// Helper - mark I as having been traversed, having range R.
|
||||
ConstantRange Float2IntPass::seen(Instruction *I, ConstantRange R) {
|
||||
void Float2IntPass::seen(Instruction *I, ConstantRange R) {
|
||||
DEBUG(dbgs() << "F2I: " << *I << ":" << R << "\n");
|
||||
if (SeenInsts.find(I) != SeenInsts.end())
|
||||
SeenInsts.find(I)->second = R;
|
||||
else
|
||||
SeenInsts.insert(std::make_pair(I, R));
|
||||
return R;
|
||||
}
|
||||
|
||||
// Helper - get a range representing a poison value.
|
||||
|
Loading…
Reference in New Issue
Block a user