mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-30 05:24:22 +00:00
Fix ScalarEvolution::print to print a value for any Instruction with
a SCEVable type, not just integer types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70463 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -3315,7 +3315,7 @@ void ScalarEvolution::print(raw_ostream &OS, const Module* ) const {
|
|||||||
|
|
||||||
OS << "Classifying expressions for: " << F->getName() << "\n";
|
OS << "Classifying expressions for: " << F->getName() << "\n";
|
||||||
for (inst_iterator I = inst_begin(F), E = inst_end(F); I != E; ++I)
|
for (inst_iterator I = inst_begin(F), E = inst_end(F); I != E; ++I)
|
||||||
if (I->getType()->isInteger()) {
|
if (isSCEVable(I->getType())) {
|
||||||
OS << *I;
|
OS << *I;
|
||||||
OS << " --> ";
|
OS << " --> ";
|
||||||
SCEVHandle SV = SE.getSCEV(&*I);
|
SCEVHandle SV = SE.getSCEV(&*I);
|
||||||
|
Reference in New Issue
Block a user