[PATCH] D51108: [PowerPC] Fix wrong ABI for i1 stack arguments for PPC32

Hal Finkel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 23 13:52:40 PDT 2018


hfinkel added inline comments.


================
Comment at: lib/Target/PowerPC/PPCISelLowering.cpp:5471
+    // Ensure callee will get either 0x00000001 or 0x00000000.
+    if (Arg.getValueType() == MVT::i1)
+      Arg = DAG.getNode(ISD::ZERO_EXTEND, dl, MVT::i32, Arg);
----------------
In your test case, the arguments have the zeroext attribute. That seems right. However, that being the case, should this be checking for i1, or should we check for Flags.isZExt()?


https://reviews.llvm.org/D51108





More information about the llvm-commits mailing list