[PATCH] D35579: [SimplifyCFG] Generate lookup tables based on a function attribute

Sumanth Gundapaneni via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 19 09:45:00 PDT 2017


sgundapa added inline comments.


================
Comment at: lib/Transforms/Utils/SimplifyCFG.cpp:5155
+  Function *Fn = SI->getParent()->getParent();
+  StringRef FuncName = Fn->getName();
+  // Only build lookup table when we have a target that supports it or the
----------------
joerg wrote:
> Just use Fn->getName() below directly.
FuncName is being used below to set the name of the table to switch.table.<FuncName>


https://reviews.llvm.org/D35579





More information about the llvm-commits mailing list