[PATCH] D13633: Type legalizer for masked gather/scatter intrinsics
Mitch Bodart via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 2 17:06:50 PST 2015
mbodart added inline comments.
================
Comment at: ../lib/CodeGen/SelectionDAG/LegalizeTypes.cpp:1115
@@ +1114,3 @@
+ if (getTypeAction(Bool.getValueType()) == TargetLowering::TypePromoteInteger)
+ Bool = GetPromotedInteger(Bool);
+
----------------
mbodart wrote:
> It seems important here that the value returned by GetPromotedInteger matches the promotion operation (e.g.. sign extension) performed by PromoteTargetBoolean.
> How is that guaranteed?
Using SExt unconditionally seems incorrect.
Don't we want to make the choice of ZExt vs SExt dependent on getBooleanContents?
Perhaps we should add getExtendForVectorContent, similar to the existing scalar getExtendForContent.
Repository:
rL LLVM
http://reviews.llvm.org/D13633
More information about the llvm-commits
mailing list