[PATCH] D138565: [BPF] Avoid checking for intrinsics using string comparisons. NFC

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 23 04:31:09 PST 2022


arichardson created this revision.
arichardson added reviewers: yonghong-song, ast, pchaigno.
Herald added a subscriber: hiraditya.
Herald added a project: All.
arichardson requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Use a dyn_cast<> to IntrinsicInst and an enum compare instead.
While touching this code also re-generate the test to use positive check
lines instead of negative ones and remove some unneeded metadata.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138565

Files:
  llvm/lib/Target/BPF/BPFIRPeephole.cpp
  llvm/test/CodeGen/BPF/vla.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138565.477456.patch
Type: text/x-patch
Size: 8262 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221123/f71b924b/attachment.bin>


More information about the llvm-commits mailing list