[PATCH] D54515: [ARM] Replace trunc for switch as a sink

Sjoerd Meijer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 14 06:46:50 PST 2018


SjoerdMeijer added inline comments.


================
Comment at: lib/Target/ARM/ARMCodeGenPrepare.cpp:260
     return GreaterThanTypeSize(ZExt);
+  if (auto *Switch = dyn_cast<SwitchInst>(V))
+    return LessThanTypeSize(Switch->getCondition());
----------------
Are we testing switch instructions?


https://reviews.llvm.org/D54515





More information about the llvm-commits mailing list