If the store is volatile this might be a memory mapped IO access. In that case we shouldn't generate a load that didn't exist in the source
Details
Diff Detail
Event Timeline
lib/Target/X86/X86InstrCompiler.td | ||
---|---|---|
1046 | Is there any place more generic we can put this? It doesn't seem x86 specific |
lib/Target/X86/X86InstrCompiler.td | ||
---|---|---|
1046 | It should probably be hoisted to include/llvm/Target/TargetSelectionDAG.td. SystemZ has this already with this name so we'd have to change that too. Do you want me move it and change SystemZ as a pre-patch. Or do you want it folded in here? Or move SystemZ as a followup? |
LGTM - probably worth committing the new tests with current codegen as a pre-commit.
lib/Target/X86/X86InstrCompiler.td | ||
---|---|---|
1046 | Leaving it here and doing the X86/SystemZ merge into TargetSelectionDAG.td as a followup is fine by me. |
Is there any place more generic we can put this? It doesn't seem x86 specific