mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Add a comment for r167040.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167046 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
415f869cf3
commit
dfa4cecb1e
@ -6145,6 +6145,10 @@ void SelectionDAGBuilder::visitInlineAsm(ImmutableCallSite CS) {
|
||||
// Compute the constraint code and ConstraintType to use.
|
||||
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 ||
|
||||
OpInfo.ConstraintType == TargetLowering::C_Other) {
|
||||
if (OpInfo.Type == InlineAsm::isInput)
|
||||
|
Loading…
Reference in New Issue
Block a user