[PATCH] D63046: [Attributor] Deduce "willreturn" function attribute
Hideto Ueno via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 27 18:57:18 PDT 2019
uenoku added inline comments.
================
Comment at: llvm/trunk/lib/Transforms/IPO/Attributor.cpp:1284
+ {(unsigned)Instruction::Invoke, (unsigned)Instruction::CallBr,
+ (unsigned)Instruction::Call}) {
+ for (Instruction *I : OpcodeInstMap[Opcode]) {
----------------
nikic wrote:
> In line with `isGuaranteedToTransferExecutionToSuccessor()`, isn't it also necessary to check for volatile memory operations, which may trap?
In D53184, it is clarified in LangRef that volatile memory operations wouldn't trap. Therefore, in my opinion, we need to fix rather `isGuaranteedToTransferExecutionToSuccessor`, isn't it?
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63046/new/
https://reviews.llvm.org/D63046
More information about the llvm-commits
mailing list