mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-07 11:59:09 +00:00
My previous patch was too conservative. Reject FP and void types, but do
allow pointer types. llvm-svn: 23859
This commit is contained in:
parent
5a915709c3
commit
63aa74e804
@ -372,7 +372,8 @@ static bool IVUseShouldUsePostIncValue(Instruction *User, Instruction *IV,
|
||||
/// return true. Otherwise, return false.
|
||||
bool LoopStrengthReduce::AddUsersIfInteresting(Instruction *I, Loop *L,
|
||||
std::set<Instruction*> &Processed) {
|
||||
if (!I->getType()->isInteger()) return false;
|
||||
if (!I->getType()->isInteger() && !isa<PointerType>(I->getType()))
|
||||
return false; // Void and FP expressions cannot be reduced.
|
||||
if (!Processed.insert(I).second)
|
||||
return true; // Instruction already handled.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user