[PATCH] D41758: [PowerPC] Fix assertion due to assuming a type is simple.

Hal Finkel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 6 21:32:06 PST 2018


hfinkel accepted this revision.
hfinkel added inline comments.


================
Comment at: lib/Target/PowerPC/PPCCTRLoops.cpp:409
+
+          if (EVTy.isSimple() && EVTy.getSimpleVT() == MVT::Other)
             return true;
----------------
You should just be able to write:

  if (EVTy == MVT::Other)

(otherwise, this LGTM too)


Repository:
  rL LLVM

https://reviews.llvm.org/D41758





More information about the llvm-commits mailing list