Handle cases where a forked pointer has an add or sub instruction before reaching a select.
Tests were precommitted in rG0a715c114686
Paths
| Differential D130278
[LAA] Handle forked pointers with add/sub instructions ClosedPublic Authored by huntergr on Jul 21 2022, 8:11 AM.
Details Summary Handle cases where a forked pointer has an add or sub instruction before reaching a select. Tests were precommitted in rG0a715c114686
Diff Detail
Event TimelineComment Actions I'm not hugely familiar with this code but I can see you're following the same idiom as used for Instruction::GetElementPtr which is just a special type of add so this patch looks good to me. Please remember to run clang-format before landing the patch.
This revision is now accepted and ready to land.Aug 12 2022, 5:57 AM Comment Actions LGTM, thanks! Please format the diff with clang-format before committing. It would probably be also good to add at least one test where the pointer bounds are expanded (e.g. with LV) and the ops require freezing.
This revision was landed with ongoing or failed builds.Aug 17 2022, 1:52 AM Closed by commit rG70d35443dc8f: [LAA] Handle forked pointers with add/sub instructions (authored by huntergr). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 446507 llvm/lib/Analysis/LoopAccessAnalysis.cpp
llvm/test/Analysis/LoopAccessAnalysis/forked-pointers.ll
|
Are you planning to support additional bin-ops in the future here? Or could this be moved to the scope in the corresponding switch case?