Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions llvm/lib/CodeGen/ExpandFp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +1036,7 @@ static bool runImpl(Function &F, const TargetLowering &TLI,
continue;

addToWorklist(I, Worklist);
Modified = true;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about removing all the assignments on add to worklist, and do it once when processing the worklist

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is possible provided scalarize always pushes to the Worklist, i.e. the instructions created in this function cannot be folded. This seems to hold true for the instructions handled in this pass. I have implemented the change accordingly in this commit. Does that make sense or should I perhaps pass NoFolder to the IRBuilder ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll revert the additional changes for now to fix the build bot failures. We can still add them in a follow-up PR.

break;
}
default:
Expand Down