[PATCH] D119967: [InstCombineCalls] Optimize call of bitcast even w/ parameter attributes
Johannes Doerfert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 21 19:41:36 PST 2022
jdoerfert added inline comments.
================
Comment at: llvm/test/Transforms/InstCombine/call-cast-attrs.ll:36
+; CHECK32: %2 = ptrtoint i32* %y to i32
+; CHECK32: call void (i32, ...) @d(i32 noundef %2)
+; CHECK64: call void bitcast (void (i32, ...)* @d to void (i32*)*)(i32* nocapture noundef %y)
----------------
aeubanks wrote:
> is losing the nocapture worth changing this to a direct call?
Yes, because we cannot analyze or inline indirect calls. The nocapture here would not be derived by any pass.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119967/new/
https://reviews.llvm.org/D119967
More information about the llvm-commits
mailing list