mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-13 17:00:01 +00:00
Add a comment for r167040.
llvm-svn: 167046
This commit is contained in:
parent
78cdbf2f16
commit
3f4e0f8e8e
@ -6145,6 +6145,10 @@ void SelectionDAGBuilder::visitInlineAsm(ImmutableCallSite CS) {
|
|||||||
// Compute the constraint code and ConstraintType to use.
|
// Compute the constraint code and ConstraintType to use.
|
||||||
TLI.ComputeConstraintToUse(OpInfo, SDValue());
|
TLI.ComputeConstraintToUse(OpInfo, SDValue());
|
||||||
|
|
||||||
|
// Ideally, we would only check against memory constraints. However, the
|
||||||
|
// meaning of an other constraint can be target-specific and we can't easily
|
||||||
|
// reason about it. Therefore, be conservative and set MayLoad/MayStore
|
||||||
|
// for other constriants as well.
|
||||||
if (OpInfo.ConstraintType == TargetLowering::C_Memory ||
|
if (OpInfo.ConstraintType == TargetLowering::C_Memory ||
|
||||||
OpInfo.ConstraintType == TargetLowering::C_Other) {
|
OpInfo.ConstraintType == TargetLowering::C_Other) {
|
||||||
if (OpInfo.Type == InlineAsm::isInput)
|
if (OpInfo.Type == InlineAsm::isInput)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user