[all-commits] [llvm/llvm-project] 9927a0: [AA] Handle callbr instructions in alias analysis
Ricky Zhou via All-commits
all-commits at lists.llvm.org
Sat Dec 18 09:52:46 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9927a06f74bb48e1e5a53fb686301c71f0dec46a
https://github.com/llvm/llvm-project/commit/9927a06f74bb48e1e5a53fb686301c71f0dec46a
Author: Ricky Zhou <ricky at rzhou.org>
Date: 2021-12-18 (Sat, 18 Dec 2021)
Changed paths:
M llvm/lib/Analysis/AliasAnalysis.cpp
A llvm/test/Analysis/BasicAA/pr52735.ll
Log Message:
-----------
[AA] Handle callbr instructions in alias analysis
Before this change, AAResults::getModRefInfo() was missing a case for
callbr instructions (asm goto), which may read/write memory. In PR52735,
this led to a miscompile where a load was incorrect eliminated.
Add this missing case, as well as an assert verifying that all
memory-accessing instructions are handled properly.
Fixes #52735.
Differential Revision: https://reviews.llvm.org/D115992
More information about the All-commits
mailing list