This is an archive of the discontinued LLVM Phabricator instance.

[ICP] Remove incompatible attributes at indirect-call promoted callsites.
ClosedPublic

Authored by trentxintong on Nov 26 2018, 1:14 PM.

Details

Summary

Removing ncompatible attributes at indirect-call promoted callsites, not removing it results in
at least a IR verification error.

Diff Detail

Repository
rL LLVM

Event Timeline

trentxintong created this revision.Nov 26 2018, 1:14 PM

Update comment in test case.

davidxl added inline comments.Nov 26 2018, 1:48 PM
lib/Transforms/Utils/CallPromotionUtils.cpp
415 ↗(On Diff #175322)

use 'else' instead of continue?

426 ↗(On Diff #175322)

Guard the following change with a flag : attributeChanged?

Address comments from @davidxl

davidxl accepted this revision.Nov 26 2018, 2:04 PM

lgtm

This revision is now accepted and ready to land.Nov 26 2018, 2:04 PM
This revision was automatically updated to reflect the committed changes.