[PATCH] D156994: [NewGVN] Only perform symbolic evaluation on instructions (NFC)

Manuel Brito via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 3 05:34:39 PDT 2023


ManuelJBrito created this revision.
ManuelJBrito added reviewers: asbirlea, kmitropoulou, nlopes.
Herald added a subscriber: hiraditya.
Herald added a project: All.
ManuelJBrito requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Every current user of performSymbolicEvaluation passes an instruction and I don't see any case where we would need to pass anything else.
So this patch restricts the argument to an Instruction and simplifies the code accordingly.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D156994

Files:
  llvm/lib/Transforms/Scalar/NewGVN.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156994.546818.patch
Type: text/x-patch
Size: 6256 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230803/c34d1001/attachment.bin>


More information about the llvm-commits mailing list