We do not need nonull attribute if we know an argument is going to be constant.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
- Build Status
Buildable 17053 Build 17053: arc lint + arc unit
Event Timeline
Comment Actions
Thanks for handling this. Just curious if you see any issue with the non-null attribute in a constant ?
test/Transforms/CallSiteSplitting/callsite-split.ll | ||
---|---|---|
44 | Can you move this in callsite-split-or-phi.ll where we run only callsite-splitting pass. Looks like you can also use just like i32* instead of %struct.bitmap*. |
Comment Actions
LGTM, with the test simplification. Unfortunately there is no easy way to prevent adding the unnecessary nonnull attribute in first place.
test/Transforms/CallSiteSplitting/callsite-split-or-phi.ll | ||
---|---|---|
577 ↗ | (On Diff #143492) | Do we need inttoptr here? |
590 ↗ | (On Diff #143492) | I don't think we need a complex callee2 function that's called here. Could you just use the existing callee function? |
Can you move this in callsite-split-or-phi.ll where we run only callsite-splitting pass. Looks like you can also use just like i32* instead of %struct.bitmap*.