This is an archive of the discontinued LLVM Phabricator instance.

[AAPointerInfo] Remove redundant check
AbandonedPublic

Authored by tianshilei1992 on Dec 27 2022, 6:50 PM.

Details

Summary

The check is unnecessary because when Assumption is assigned, it will break the
loop immediately; otherwise Assumption.first is always false.

Diff Detail

Event Timeline

tianshilei1992 created this revision.Dec 27 2022, 6:50 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 27 2022, 6:50 PM
tianshilei1992 requested review of this revision.Dec 27 2022, 6:50 PM
Herald added a project: Restricted Project. · View Herald Transcript
jdoerfert added inline comments.Dec 28 2022, 12:13 AM
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
1653

This breaks the outer loop.

tianshilei1992 abandoned this revision.Dec 28 2022, 1:22 AM
tianshilei1992 marked an inline comment as done.
tianshilei1992 added inline comments.
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
1653

Oh I'm stupid. My eyes need calibration…