This fixes several instances in which condbr optimization was missed
due to a debug instruction appearing as a bogus NZCV clobber.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM, thanks
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp | ||
---|---|---|
3179 | nit: could be something like return any_of(instructionsWithoutDebug( std::next(DefMI.getIterator()), UseMI.getIterator()), [TRI](MachineInstr &I) { return I.modifiesRegister(AArch64::NZCV, TRI) || I.readsRegister(AArch64::NZCV, TRI); }); |
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp | ||
---|---|---|
3179 | Thanks, I'll fold this into the change prior to landing it. |
nit: could be something like