-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[CFIFixup] Factor logic into helpers and use range-based loops (NFC) #125137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
`runOnMachineFunction` is getting long (>100 lines), and the logic for computing block info and performing block fixup can be abstracted away. Reduce nesting in the main block fixup loop and name conditions to reflect their purpose. Replace manual usage of iterators with a range-based for loop. Source: - https://llvm.org/docs/CodingStandards.html#use-early-exits-and-continue-to-simplify-code - https://llvm.org/docs/CodingStandards.html#use-range-based-for-loops-wherever-possible - https://llvm.org/docs/CodingStandards.html#don-t-evaluate-end-every-time-through-a-loop
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/163/builds/12726 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/17106 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/12855 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/133/builds/10660 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/88/builds/7482 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/180/builds/12313 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/160/builds/12316 Here is the relevant piece of the build log for the reference
|
…s (NFC) (#125137)" This reverts commit f14f197, which breaks a number of build bots: - https://lab.llvm.org/buildbot/#/builders/163/builds/12726 - https://lab.llvm.org/buildbot/#/builders/144/builds/17106 - https://lab.llvm.org/buildbot/#/builders/123/builds/12855 - https://lab.llvm.org/buildbot/#/builders/133/builds/10660 - https://lab.llvm.org/buildbot/#/builders/88/builds/7482 - https://lab.llvm.org/buildbot/#/builders/180/builds/12313 - https://lab.llvm.org/buildbot/#/builders/160/builds/12316
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/16/builds/13067 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/33/builds/10648 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/56/builds/17666 Here is the relevant piece of the build log for the reference
|
…s (NFC) #125137" This patch was breaking tests due to inconsistent use of SmallVector. After consolidating SmallVector usages, everything should work as intended.
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/60/builds/18540 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/92/builds/12982 Here is the relevant piece of the build log for the reference
|
runOnMachineFunction
is getting long (>100 lines), and the logicfor computing block info and performing block fixup can be abstracted
away.
Reduce nesting in the main block fixup loop and name conditions to
reflect their purpose.
Replace manual usage of iterators with a range-based for loop.
Source: