[PATCH] D119967: [InstCombineCalls] Optimize call of bitcast even w/ parameter attributes

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 21 16:40:33 PST 2022


aeubanks 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)
----------------
is losing the nocapture worth changing this to a direct call?


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