[PATCH] D45732: [GlobalISel] Making VRegs w/ LLTs and RegClasses both illegal
Aditya Nandakumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 3 08:27:50 PDT 2018
aditya_nandakumar added a comment.
Also, I wonder if there would be passes (non ISEL), that would break the invariant intra pass, but cleans up at the end of the pass..
================
Comment at: lib/CodeGen/GlobalISel/IRTranslator.cpp:598
+ MIRBuilder.buildInstr(TargetOpcode::COPY).addDef(DstReg).addUse(TmpReg);
auto &TLI = *MF->getSubtarget().getTargetLowering();
----------------
This can be simplified into a more compact form (if you care enough).
```
auto MIB = MIRBuilder.buildCopy(DstReg,
MIRBuilder.buildInstr(TRI->getPointerRegClass(*MF), LOAD_STACK_GUARD))
```
Repository:
rL LLVM
https://reviews.llvm.org/D45732
More information about the llvm-commits
mailing list