While grepping for some inspriration, I came across this function, and I found the logic a bit difficult to follow, so I simplified it a bit.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
If this is going to be rewritten, I'd suggest using RDA here which should hopefully be able to get your the reaching def of the VPR in a single call. Two more calls for checking for defs between instructions.
Comment Actions
it's not that this is important, but the code would benefit from a rewrite. This was a more easy/straightforward change, but agreed that RDA would be even better, so will see what I can do.
llvm/lib/Target/ARM/MVEVPTBlockPass.cpp | ||
---|---|---|
167 | RDA...? |
Comment Actions
Cheers! Just please remove TRI before committing.
llvm/lib/Target/ARM/MVEVPTBlockPass.cpp | ||
---|---|---|
138 | Unused argument and looks like the formatting is off below. |
Unused argument and looks like the formatting is off below.