[PATCH] D75598: [InstCombine] Handle gc.relocate(null) in one iteration

Denis Antrushin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 4 05:06:35 PST 2020


dantrushin added a comment.

Can `gc.relocate(null)` be constant folded? I quickly glanced over code and it seems it's not. Could you double-check it?
After quick look through initial worklist construction in `AddReachableCodeToWorklist` from Transforms/InstCombine/InstructionCombining.cpp, it seems to me that if `gc.relocate(null)` was constant folded, this problem would not exist.
Am I missed something here?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75598/new/

https://reviews.llvm.org/D75598





More information about the llvm-commits mailing list