[llvm] [GVN] Add code to disable scalar PRE (PR #190386)
Antonio Frighetto via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 23 04:16:31 PDT 2026
================
@@ -291,7 +291,8 @@ NVPTXTargetMachine::getPredicatedAddrSpace(const Value *V) const {
void NVPTXPassConfig::addEarlyCSEOrGVNPass() {
if (getOptLevel() == CodeGenOptLevel::Aggressive)
- addPass(createGVNPass());
+ // Disable scalar PRE due to Register Pressure increase
----------------
antoniofrighetto wrote:
If possible, might be nice to add a test showing the register pressure increased (I think the one below is testing the option, right?), though not strong on this.
https://github.com/llvm/llvm-project/pull/190386
More information about the llvm-commits
mailing list